Contract 2.0 §13 expects probes that actually mean something. Today /health answers optimistically and /version carries no build metadata, so neither Gatus nor an operator can tell a healthy deployment from a broken one, or which build is running.
What to change
Real /health with Mongo and tenant-registry checks, reporting ok|degraded and returning 503 when a dependency is down (handlers/health.rs).
/version gets the build sha and deployed_at, supplied via Docker build args from CI (build args added in MVP-4.1).
Acceptance
/health returns 503 with a degraded body when Mongo or the registry is unreachable, and 200 ok otherwise, with tests for both.
/version reports the git sha and deploy timestamp of the running image.
The container HEALTHCHECK (MVP-0.8) uses this endpoint.
Gatus checks for /health, /mcp/health and /docs are configured (MVP-5.1).
## Goal
Contract 2.0 §13 expects probes that actually mean something. Today `/health` answers optimistically and `/version` carries no build metadata, so neither Gatus nor an operator can tell a healthy deployment from a broken one, or which build is running.
## What to change
- Real `/health` with Mongo and tenant-registry checks, reporting `ok|degraded` and returning 503 when a dependency is down (`handlers/health.rs`).
- `/version` gets the build sha and `deployed_at`, supplied via Docker build args from CI (build args added in MVP-4.1).
## Acceptance
- [ ] `/health` returns 503 with a `degraded` body when Mongo or the registry is unreachable, and 200 `ok` otherwise, with tests for both.
- [ ] `/version` reports the git sha and deploy timestamp of the running image.
- [ ] The container `HEALTHCHECK` (MVP-0.8) uses this endpoint.
- [ ] Gatus checks for `/health`, `/mcp/health` and `/docs` are configured (MVP-5.1).
sharang
added this to the Production MVP milestone 2026-09-20 20:17:19 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Goal
Contract 2.0 §13 expects probes that actually mean something. Today
/healthanswers optimistically and/versioncarries no build metadata, so neither Gatus nor an operator can tell a healthy deployment from a broken one, or which build is running.What to change
/healthwith Mongo and tenant-registry checks, reportingok|degradedand returning 503 when a dependency is down (handlers/health.rs)./versiongets the build sha anddeployed_at, supplied via Docker build args from CI (build args added in MVP-4.1).Acceptance
/healthreturns 503 with adegradedbody when Mongo or the registry is unreachable, and 200okotherwise, with tests for both./versionreports the git sha and deploy timestamp of the running image.HEALTHCHECK(MVP-0.8) uses this endpoint./health,/mcp/healthand/docsare configured (MVP-5.1).