Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CSP policy #6629

Open
wants to merge 9 commits into
base: current
Choose a base branch
from
Open

Update CSP policy #6629

wants to merge 9 commits into from

Conversation

john-rock
Copy link
Contributor

@john-rock john-rock commented Dec 9, 2024

What are you changing in this pull request and why?

This PR updates the Content Security Policy headers, specifically frame-ancestors, in order to reduce the vulnerability of clickjacking attacks based on our most recent security report.

Changes

Adds the following frame-ancestors into the content security policy

  • https://*.mutinyhq.com - Allow experimentation previews within Mutiny dashboard
  • https://*.getdbt.com - Allows docs to be embedded on sites within our domain

Preview

https://docs-getdbt-com-git-update-strict-csp-dbt-labs.vercel.app/

Testing

  • Browse through the deploy preview and confirm site functions as expected.
  • Confirm no errors are present regarding the changes to the CSP within the browser console.

Copy link

vercel bot commented Dec 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview Dec 10, 2024 8:41pm

@github-actions github-actions bot added the size: x-small This change will take under 3 hours to fix. label Dec 9, 2024
@john-rock john-rock marked this pull request as ready for review December 10, 2024 20:37
@john-rock john-rock requested a review from a team as a code owner December 10, 2024 20:37
@john-rock john-rock requested a review from JKarlavige December 10, 2024 21:31
Copy link
Collaborator

@JKarlavige JKarlavige left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: x-small This change will take under 3 hours to fix.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants