Source code Stability Releases

Health endpoint doesn't check DB

Part of the Observability gaps check · fix arrives as a draft

What it is

A health endpoint returns 200 unconditionally without checking the database or other dependencies it needs to do its job.

Why it matters

It answers the wrong question. The process is alive, so the check passes, while every request fails on a connection the check never tried — and the load balancer keeps the instance in rotation throughout.

How to fix it

Have readiness run a cheap real query — SELECT 1 with a short timeout — against each critical dependency. Keep liveness trivial so a dependency blip restarts nothing.

Run them all on your app

Connect your repo and your live services with read-only scopes. The first scan is free, and nothing changes without your approval.