Skip to content

Commit f4810b5

Browse files
authored
fix: quote special characters in password and other var (#289)
1 parent 96218ae commit f4810b5

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

config/setup/common/data/system_ingest_config.dat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ pipeline:
5454
Content-Type: application/json
5555
body: $[[message]]
5656
basic_auth:
57-
username: $[[SETUP_AGENT_USERNAME]]
58-
password: $[[SETUP_AGENT_PASSWORD]]
57+
username: '$[[SETUP_AGENT_USERNAME]]'
58+
password: '$[[SETUP_AGENT_PASSWORD]]'
5959
# tls: #for mTLS connection with config servers
6060
# enabled: true
6161
# ca_file: /xxx/ca.crt
@@ -64,5 +64,5 @@ pipeline:
6464
# skip_insecure_verify: false
6565
schema: "$[[SETUP_SCHEME]]"
6666
# receiver endpoint, fallback in order
67-
hosts: $[[SETUP_HOSTS]]
67+
hosts: "$[[SETUP_HOSTS]]"
6868
valid_status_code: [200,201] #panic on other status code

config/setup/common/data/task_config_tpl.dat

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ env:
22
CLUSTER_PASSWORD: $[[keystore.$[[CLUSTER_ID]]_password]]
33

44
elasticsearch:
5-
- id: $[[TASK_ID]]
6-
name: $[[TASK_ID]]
7-
cluster_uuid: $[[CLUSTER_UUID]]
5+
- id: "$[[TASK_ID]]"
6+
name: "$[[TASK_ID]]"
7+
cluster_uuid: "$[[CLUSTER_UUID]]"
88
enabled: true
9-
distribution: $[[CLUSTER_DISTRIBUTION]]
10-
version: $[[CLUSTER_VERSION]]
11-
endpoints: $[[CLUSTER_ENDPOINT]]
9+
distribution: "$[[CLUSTER_DISTRIBUTION]]"
10+
version: "$[[CLUSTER_VERSION]]"
11+
endpoints: "$[[CLUSTER_ENDPOINT]]"
1212
discovery:
1313
enabled: false
1414
basic_auth:
15-
username: $[[CLUSTER_USERNAME]]
16-
password: $[[CLUSTER_PASSWORD]]
15+
username: '$[[CLUSTER_USERNAME]]'
16+
password: '$[[CLUSTER_PASSWORD]]'
1717
traffic_control:
1818
enabled: true
1919
max_qps_per_node: 100
@@ -32,9 +32,9 @@ pipeline:
3232
- es_node_stats:
3333
elasticsearch: $[[TASK_ID]]
3434
labels:
35-
cluster_id: $[[CLUSTER_ID]]
36-
cluster_uuid: $[[CLUSTER_UUID]]
37-
cluster_name: $[[CLUSTER_NAME]]
35+
cluster_id: "$[[CLUSTER_ID]]"
36+
cluster_uuid: "$[[CLUSTER_UUID]]"
37+
cluster_name: "$[[CLUSTER_NAME]]"
3838
when:
3939
cluster_available: ["$[[TASK_ID]]"]
4040

@@ -46,12 +46,12 @@ pipeline:
4646
retry_delay_in_ms: 10000
4747
processor:
4848
- es_logs_processor:
49-
elasticsearch: $[[TASK_ID]]
49+
elasticsearch: "$[[TASK_ID]]"
5050
labels:
51-
cluster_id: $[[CLUSTER_ID]]
52-
cluster_uuid: $[[CLUSTER_UUID]]
53-
cluster_name: $[[CLUSTER_NAME]]
54-
logs_path: $[[NODE_LOGS_PATH]]
51+
cluster_id: "$[[CLUSTER_ID]]"
52+
cluster_uuid: "$[[CLUSTER_UUID]]"
53+
cluster_name: "$[[CLUSTER_NAME]]"
54+
logs_path: "$[[NODE_LOGS_PATH]]"
5555
queue_name: logs
5656
when:
5757
cluster_available: ["$[[TASK_ID]]"]

0 commit comments

Comments
 (0)