Health endpoint does not verify database connectivity #60

Open
opened 2026-03-30 13:28:53 +00:00 by sharang · 0 comments
Owner

/api/v1/health returns ok unconditionally without pinging MongoDB. Load balancers will route traffic to unhealthy instances. Fix: Add db.run_command(ping) to health check.

/api/v1/health returns ok unconditionally without pinging MongoDB. Load balancers will route traffic to unhealthy instances. Fix: Add db.run_command(ping) to health check.
sharang added the buginfrastructurev0.3.0critical labels 2026-03-30 13:28:53 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sharang/compliance-scanner-agent#60