feat(auth-broker): add process healthcheck mode

This commit is contained in:
Codex
2026-05-21 14:17:41 +00:00
parent f12fd2fb58
commit a6144ae710
@@ -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)