From 9a9896c2f2191dec0265431991e480b26ae2a4a0 Mon Sep 17 00:00:00 2001 From: hardy Date: Tue, 25 Feb 2025 16:22:24 +0800 Subject: [PATCH] fix: gateway config for agent mTLS --- .../common/data/agent_relay_gateway_config.dat | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/config/setup/common/data/agent_relay_gateway_config.dat b/config/setup/common/data/agent_relay_gateway_config.dat index d415e4c6..52c4efe1 100644 --- a/config/setup/common/data/agent_relay_gateway_config.dat +++ b/config/setup/common/data/agent_relay_gateway_config.dat @@ -10,13 +10,13 @@ entry: router: my_router max_concurrency: 200000 network: - binding: 0.0.0.0:8081 -# tls: #for mTLS connection with config servers -# enabled: true + binding: 0.0.0.0:8765 + tls: #for mTLS connection with config servers + enabled: true # ca_file: /xxx/ca.crt # cert_file: /xxx/server.crt # key_file: /xxx/server.key -# skip_insecure_verify: false + skip_insecure_verify: false flow: - name: deny_flow @@ -28,7 +28,7 @@ flow: filter: - basic_auth: valid_users: - ingest: n + $[[SETUP_AGENT_USERNAME]]: $[[SETUP_AGENT_PASSWORD]] - rewrite_to_bulk: type_removed: false - bulk_request_mutate: @@ -65,8 +65,8 @@ elasticsearch: - name: prod enabled: true basic_auth: - username: ingest - password: password + username: $[[SETUP_AGENT_USERNAME]] + password: $[[SETUP_AGENT_PASSWORD]] endpoints: $[[SETUP_ENDPOINTS]] pipeline: