fix(caddy): let keycloak frame its own pages #647
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!647
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "fix/keycloak-frame-sameorigin"
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
The Keycloak vhost sends
X-Frame-Options: SAMEORIGIN. Every other host keepsDENY.The shared
security_headerssnippet now takes the frame policy as an argument, so each vhost states it.Why
The account console checks third-party cookies by loading
/realms/<realm>/protocol/openid-connect/3p-cookies/step1.htmlin a same-origin iframe.DENYblocked that iframe, so the console timed out with "Timeout when waiting for 3rd party check iframe message". A plainheaderoverride on the vhost did not work: the shared block deletes headers, so Caddy defers it and it runs last.Keycloak still sends its own
Content-Security-Policy: frame-ancestors 'self'.Verification
Applied to staging with
apply-reconcile.sh --tags caddy; it reconciled clean.id.stg:step1.htmland/realms/bitborg/account/sendSAMEORIGIN.www.stg,git.stgandstg.bitborg.sesendDENY.