From a6144ae71069d1467ccf452f53674b386978fc1d Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 21 May 2026 14:17:41 +0000 Subject: [PATCH] feat(auth-broker): add process healthcheck mode --- src/components/microservices/auth-broker/src/main.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/microservices/auth-broker/src/main.rs b/src/components/microservices/auth-broker/src/main.rs index 757bf5ab..bc6d008f 100644 --- a/src/components/microservices/auth-broker/src/main.rs +++ b/src/components/microservices/auth-broker/src/main.rs @@ -625,6 +625,18 @@ fn route(config: &Config, request: Request) { } fn main() { + if env::args().any(|arg| arg == "--healthcheck") { + println!( + "{}", + json!({ + "ok": true, + "service": "auth-broker", + "mode": "process-healthcheck", + "credentialValuePrinted": false + }) + ); + return; + } let config = config_from_env(); let address = format!("{}:{}", config.host, config.port); let server = Server::http(&address)