chore: 使用环境变量管理内部密钥

This commit is contained in:
zxr
2026-08-04 15:48:59 +08:00
parent 8495fdf039
commit db3cb24b4e
3 changed files with 76 additions and 69 deletions

View File

@@ -20,12 +20,12 @@ Ingest:
trap_listen_addr: "0.0.0.0:9162"
rule_refresh_secs: 30
AlertForward:
enabled: true
base_url: https://ops-api.apinb.com
internal_key: "ops-alert"
default_policy_id: 0
ResourceEvent:
hmac_secret: "replace-with-dc-control-shared-secret"
max_skew_secs: 300
AlertForward:
enabled: true
base_url: https://ops-api.apinb.com
internal_key: ${LOGS_ALERT_SECRET}
default_policy_id: 0
ResourceEvent:
hmac_secret: ${DC_CONTROL_LOGS_EVENT_SECRET}
max_skew_secs: 300