8d025489cf
The boot readiness probe calls the credential-free /api/health, and only a 404 flips it to the /api/status fallback. Both halves are wrong against a gated gateway. /api/health landed inccab46ca4(2026-07-24), after the v2026.7.20 tag, so every container pinned to a release lacks the route. On those backends the dashboard auth gate runs ahead of the SPA catch-all, so an unknown /api/* path is rejected as unauthenticated rather than 404 — a credential-free probe can never observe the 404 that the fallback keys on, and boot loops until the 45s deadline reporting a healthy backend as "did not become ready". Upgrading the backend is not a workaround for release-pinned deployments. Simulating a 0.19.0 backend (both the route and its PUBLIC_API_PATHS entry removed, sinceccab46ca4added the two together) shows the probe's 401 means two different things depending on whether credentials were sent: credential-free: /api/health -> 401 no_cookie, /api/status -> 200 credentialed: /api/health -> 404, /api/sessions -> 200 So the fix is not "fall back on any 401". Uncredentialed, a gate-shaped 401 identifies a missing route and must fall back. Credentialed, a 401/403 is a rejected session and must fail fast — falling back would hit the public /api/status, get a 200, and report a dead session as ready, deferring the no_cookie to the first real API call. Split the two cases and tag the credentialed rejection as a terminal reauth error. A generic 401 without the gate shape, plus 429 and 5xx, keep polling as before.