Health endpoint with critical checks #149

Open
opened 2026-11-27 16:44:05 -05:00 by bobby · 0 comments
Owner

Part of #73 (spec: #72)

What to build

GET /v1/health, for Principals with the health Scope, reports the db check (SELECT 1 through the app pool) and the schema check (at the expected Alembic head). Any failure returns down with 503. Bodies carry only check names and ok/fail.

Acceptance criteria

  • Healthy returns ok with 200
  • A schema behind head returns down with 503
  • Without the health Scope, 403
Part of #73 (spec: #72) ## What to build `GET /v1/health`, for Principals with the `health` Scope, reports the `db` check (`SELECT 1` through the app pool) and the `schema` check (at the expected Alembic head). Any failure returns `down` with `503`. Bodies carry only check names and `ok`/`fail`. ## Acceptance criteria - [ ] Healthy returns `ok` with `200` - [ ] A schema behind head returns `down` with `503` - [ ] Without the `health` Scope, `403`
bobby added the ready-for-agent label 2026-11-27 16:44:05 -05:00
bobby added a new dependency 2026-11-27 16:44:05 -05:00
bobby added a new dependency 2026-11-27 16:44:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#149