fix(caddy): stop claiming the front-channel response drops x-frame-options #761

Sammanfogat
supernaut sammanfogade 1 incheckning från fix/756-xfo in i main 2026-10-17 11:24:41 +00:00
Ägare

Follow-up to #760. Refs #756.

The front-channel logout handle block deleted X-Frame-Options, but the site-level import security_headers DENY defers its header block and sets the header again. Staging showed X-Frame-Options: DENY next to Content-Security-Policy: frame-ancestors https://id.stg.bitborg.se on the 200, and the browser sign-out worked: browsers apply frame-ancestors instead of X-Frame-Options.

What

  • Caddyfile.j2: drop the no-op -X-Frame-Options. The block sends only the CSP header.
  • test_frontchannel_logout.sh: drop the assertion that passed only because the fake site's header was not deferred.
  • Runbook: the paragraph says the response sends the CSP header, which browsers apply instead of X-Frame-Options.

Checks

  • sh ansible/roles/caddy/files/test_frontchannel_logout.sh: ok.
  • shellcheck 0.10.0 (pinned): clean.

After merge

  • Staging and prod: --tags caddy. Expect the diff to remove one line in the @forgejo_frontchannel_logout handle.
Follow-up to #760. Refs #756. The front-channel logout `handle` block deleted `X-Frame-Options`, but the site-level `import security_headers DENY` defers its header block and sets the header again. Staging showed `X-Frame-Options: DENY` next to `Content-Security-Policy: frame-ancestors https://id.stg.bitborg.se` on the `200`, and the browser sign-out worked: browsers apply `frame-ancestors` instead of `X-Frame-Options`. ## What - `Caddyfile.j2`: drop the no-op `-X-Frame-Options`. The block sends only the CSP header. - `test_frontchannel_logout.sh`: drop the assertion that passed only because the fake site's header was not deferred. - Runbook: the paragraph says the response sends the CSP header, which browsers apply instead of `X-Frame-Options`. ## Checks - `sh ansible/roles/caddy/files/test_frontchannel_logout.sh`: `ok`. - shellcheck 0.10.0 (pinned): clean. ## After merge - [x] Staging and prod: `--tags caddy`. Expect the diff to remove one line in the `@forgejo_frontchannel_logout` handle.
supernaut lade till 1 incheckning 2026-10-17 10:48:38 +00:00
fix(caddy): stop claiming the front-channel response drops x-frame-options
Alla kontroller lyckades
ci / ci (pull_request) Successful in 2m58s
595e316533
The site-level security_headers import defers its header block, so the inner delete never ran. The CSP frame-ancestors header is what browsers apply. Refs #756.
supernaut sammanfogade incheckning a6208915ae till main 2026-10-17 11:24:41 +00:00
supernaut tog bort grenen fix/756-xfo 2026-10-17 11:24:41 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!761
Ingen beskrivning angiven.