just fixes
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 37s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 37s
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
# Service identification
|
# Service identification
|
||||||
CONTAINER_NAME=logclient-filebeat
|
CONTAINER_NAME=logclient-filebeat
|
||||||
|
|
||||||
|
# Server settings (REQUIRED by dropshell)
|
||||||
|
SSH_USER="root"
|
||||||
|
|
||||||
# Docker image tag override (optional)
|
# Docker image tag override (optional)
|
||||||
IMAGE_TAG="7.17.23"
|
IMAGE_TAG="7.17.23"
|
||||||
|
|
||||||
|
5
logserver/config/api-keys.yml
Normal file
5
logserver/config/api-keys.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# API Keys for LogServer Authentication
|
||||||
|
# Format: hostname:api_key
|
||||||
|
# Generated by generate-api-key.sh
|
||||||
|
|
||||||
|
api_keys:
|
@@ -1,6 +1,9 @@
|
|||||||
# Service identification
|
# Service identification
|
||||||
CONTAINER_NAME=logserver
|
CONTAINER_NAME=logserver
|
||||||
|
|
||||||
|
# Server settings (REQUIRED by dropshell)
|
||||||
|
SSH_USER="root"
|
||||||
|
|
||||||
# Elasticsearch settings
|
# Elasticsearch settings
|
||||||
ES_VERSION=7.17.23
|
ES_VERSION=7.17.23
|
||||||
ES_HEAP_SIZE=2g
|
ES_HEAP_SIZE=2g
|
||||||
|
@@ -60,9 +60,10 @@ while true; do
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Validate hostname
|
# Validate hostname - allow simple names, must start with alphanumeric
|
||||||
if [[ ! "$hostname" =~ ^[a-zA-Z0-9][a-zA-Z0-9-_.]*$ ]]; then
|
if [[ ! "$hostname" =~ ^[a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?$ ]]; then
|
||||||
echo -e "${RED}Invalid hostname format. Use only letters, numbers, dots, dashes, and underscores.${NC}"
|
echo -e "${RED}Invalid hostname format. Use only letters, numbers, dots, dashes, and underscores.${NC}"
|
||||||
|
echo -e "${RED}Hostname must start and end with a letter or number.${NC}"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user