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/strategy-engine/src/strategy_engine/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/strategy-engine') diff --git a/services/strategy-engine/src/strategy_engine/main.py b/services/strategy-engine/src/strategy_engine/main.py index 53681d1..fabd755 100644 --- a/services/strategy-engine/src/strategy_engine/main.py +++ b/services/strategy-engine/src/strategy_engine/main.py @@ -43,7 +43,7 @@ async def run() -> None: engine = StrategyEngine(broker=broker, strategies=strategies) - health = HealthCheckServer("strategy-engine", port=config.health_port + 1) + health = HealthCheckServer("strategy-engine", port=config.health_port + 1, auth_token=config.metrics_auth_token) health.register_check("redis", broker.ping) await health.start() metrics.service_up.labels(service="strategy-engine").set(1) -- cgit v1.2.3