Skip to main content

readyz

Function readyz 

Source
async fn readyz(__arg0: State<Arc<SharedState>>) -> impl IntoResponse
Expand description

GET /readyz — readiness probe. Exempt from auth.

Ready means the route table is loaded, the ACME runtime exists when system.yaml asks for managed certificates, and no ACME-managed certificate is still serving a placeholder — renewal failures never affect readiness, only a cert that has never successfully issued does. Returns 200 OK with the compiled route count (and the empty acme.placeholder list) once both hold, or 503 Service Unavailable while either does not. Every branch carries the same acme.placeholder shape, even “no routes loaded” (where the acme runtime hasn’t necessarily been consulted), so callers can rely on one JSON shape regardless of why readiness failed.