BLOCKED: config: add anti-clickjacking headers #8
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
public/website-lfs-migration-test!8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/clickjacking-headers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
caution.cocan currently be embedded by arbitrary sites because its Caddy responses do not set an anti-framing policy. The live web-server configuration also is not tracked alongside the site source.Summary
caution.coandwww.caution.co.frame-ancestors 'none'andX-Frame-Options: DENY.nosniffand a strict-origin referrer policy while preserving the current HSTS value.Risk / security impact
dashboard.caution.co, which already sends its own anti-framing headers.Test plan
make build— passes; Jekyll production image builds successfully.docker run --rm -v "$PWD/Caddyfile:/etc/caddy/Caddyfile:ro" caddy:2 caddy validate --config /etc/caddy/Caddyfile— valid configuration._sitewith the Caddy config on local HTTP and issue a HEAD request — returnsframe-ancestors 'none',X-Frame-Options: DENY,nosniff, the strict-origin referrer policy, and the existing HSTS value.git diff --check— passes.Production rollout
/etc/caddy/Caddyfileoncaution.cowith the tracked configuration.caddy validate --config /etc/caddy/Caddyfile.https://caution.co/andhttps://www.caution.co/withcurl -sSI.Rollback: restore the previous Caddyfile and reload Caddy.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.