fix(GRO-1566): bypass auth for /api/health endpoint on UAT #61
Reference in New Issue
Block a user
Delete Branch "fix/gro-1566-api-health-auth-bypass"
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?
Summary
/api/healthreturning 401 on UAT by adding it to the auth skip list inauthMiddleware/health(app-level, registered before all middleware) already returns 200/api/healthwas under theapisub-router which appliesauthMiddleware, but the skip list only covered/api/auth/*, not/api/healthcurl https://uat.groombook.dev/api/healthnow returns{"status":"ok"}200Test plan
curl https://uat.groombook.dev/api/healthreturns 200 with{"status":"ok"}curl https://uat.groombook.dev/healthreturns 200 with{"status":"ok"}(existing, was already working)Related
cc @cpfarhood