fix: ensure GET /health returns 200 without authentication (health probe exempt from auth middleware) #184
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Issue #169 confirms that
GET /healthreturns HTTP 404 from outside the cluster, meaning the pod is running but the health route is not being matched. This issue tracks the code-level investigation and fix.Steps
internal/handlers/handlers.goto confirm/healthis registered with the correct pattern (GET /health) in thehttp.ServeMux.w.WriteHeader(http.StatusOK)and a minimal response body.PathPrefixstripping annotation to the IngressRoute in the Talos repo.GET /healthalways returns 200, even without a session cookie.Acceptance Criteria
GET /healthreturns HTTP 200 without authenticationTestHealth_Returns200_NoAuthpasses ingo test ./...References
/healthroute (K8s liveness/readiness probe)Closing as already implemented. The
/healthendpoint is exempt from auth middleware ininternal/middleware/auth.go(line 36), andTestAuth_HealthBypassininternal/middleware/auth_test.goverifies the behavior. No further work needed.