Auth
Runbooks
Operational playbooks for Auth
API key failures (401/500)
Symptoms
- Clients receive
401 Unauthorizedor{"detail": "API key is missing"}. - Service returns
500with"API key error"on every request.
Checks
- Confirm the request includes
X-API-Key. - Verify the
AUTH_API_KEYsecret exists in Secret Manager. - Ensure the service account has
secretmanager.versions.access. - Restart the service to reload secrets.
JWT verification failures
Symptoms
401 Unauthorizedwith errors such as "Invalid audience", "Issuer not allowed", or "Token expired".
Checks
- Verify the
expected_audmatches the token audience. - Confirm the issuer is included in
allowed_issuers. - Validate
expected_nonceif used by the client.
JWKS fetch errors
Symptoms
401 Unauthorizedwith "JWKS fetch error" or intermittent failures.
Checks
- Confirm the issuer URL is reachable from the service.
- Check if the issuer publishes a valid JWKS at
/.well-known/jwks.json. - Look for networking/VPC connector issues.
CORS errors in client apps
Symptoms
- Browser console shows CORS blocked requests.
Checks
- Confirm
ALLOWED_ORIGINSincludes the client origin. - Redeploy after changes.
Last updated on