turn on SSO

This commit is contained in:
s871077
2026-09-21 18:42:32 +08:00
parent 137a4a2a39
commit 167eb0807d
12 changed files with 97 additions and 102 deletions
+5 -5
View File
@@ -50,13 +50,13 @@ spec:
- secretRef:
name: {{ include "it-cost-dashboard.fullname" . }}-server-secret
# Readiness hits a DB-backed route on purpose: a pod only takes
# traffic once MySQL is reachable AND the schema is right.
# NOTE (SSO restore): /api/years will 307 to /login once the
# middleware is back on, which is non-2xx — add a public /api/health
# route and probe that instead.
# traffic once MySQL is reachable. /api/health is allow-listed in
# src/auth.config.ts, so the middleware lets it through unauthenticated
# instead of 307-ing it to /login (which would be non-2xx and would
# keep the pod permanently unready).
readinessProbe:
httpGet:
path: /api/years
path: /api/health
port: http
initialDelaySeconds: 10
periodSeconds: 5