summaryrefslogtreecommitdiff
path: root/services/data-collector/src
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 17:22:44 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 17:22:44 +0900
commit4e6ae373b6abc7ef0d5fb810385d14250757f3f1 (patch)
treea26fa4465308fe3996b4a8b91aead9132c899941 /services/data-collector/src
parent538749d0daa43ec94c48cdf35110d19c39e3c896 (diff)
feat(security): add bearer token auth for health/metrics endpoints
Diffstat (limited to 'services/data-collector/src')
-rw-r--r--services/data-collector/src/data_collector/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/data-collector/src/data_collector/main.py b/services/data-collector/src/data_collector/main.py
index 170e8b1..81e13df 100644
--- a/services/data-collector/src/data_collector/main.py
+++ b/services/data-collector/src/data_collector/main.py
@@ -49,7 +49,7 @@ async def run() -> None:
on_candle=on_candle,
)
- health = HealthCheckServer("data-collector", port=config.health_port)
+ health = HealthCheckServer("data-collector", port=config.health_port, auth_token=config.metrics_auth_token)
health.register_check("redis", broker.ping)
await health.start()
metrics.service_up.labels(service="data-collector").set(1)