fix(csp): allow the logout and checkout redirects in form-action #343
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-web!343
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "fix/csp-form-action-redirects"
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?
What
CSP
form-actionallowshttps://id.bitborg.se,https://id.stg.bitborg.seandhttps://*.mollie.combesides'self'.Why
Browsers apply
form-actionto the redirect that follows a form POST.POST /auth/logoutanswered 302 to the Bitborg ID end-session endpoint, but the browser never followed it. Seen on staging: no request toid.stgand noLOGOUTevent in Keycloak. The next page load signed the person straight back in through SSO, so sign-out looked like a page refresh.POST /api/checkoutanswers 303 to Mollie, which the same rule blocks.Verification
pnpm check,lint,testandbuildpass. The built CSP carries the newform-action. A browser check on staging follows the deploy.65dbf8b7f9b6f9477cc3