From 4e6ae373b6abc7ef0d5fb810385d14250757f3f1 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 1 Apr 2026 17:22:44 +0900 Subject: feat(security): add bearer token auth for health/metrics endpoints --- services/data-collector/src/data_collector/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/data-collector/src/data_collector/main.py') 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) -- cgit v1.2.3