fix(caddy): end the bitborg id session when forgejo v17 answers sign-out with 303 #762
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra!762
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "fix/716-signout-303"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Forgejo v17 submits sign-out as a form and answers
POST /user/logoutwith303to/(v16:200JSON forfetch()). Thegit.*intercept only matched200, so on v17 thebitborg_sso_logoutcookie and the Keycloak end-session redirect (#646) would be skipped. Refs #716.What
Caddyfile.j2: a303branch in the sign-out intercept adds the same cookie and redirects to/user/sso-logout. The200branch stays while prod runs v16.test_frontchannel_logout.sh: a second stub answers303with a cookie-clearingSet-Cookie. The test asserts303,Location: /user/sso-logout,bitborg_sso_logout=1, and that the upstream cookie is kept.Checks
okon the pinned Caddy image. Removing the303branch makes it fail on theLocationassertion.After merge
--tags caddyon staging and prod (v16 keeps using the200branch).200branch.