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

Add Permissions-Policy and Content-Security-Policy headers #226

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

laymonage
Copy link
Member

Part of #126.

if "CSP_BASE_URI" in env:
CSP_BASE_URI = env.get("CSP_BASE_URI").split(",")
if "CSP_OBJECT_SRC" in env:
CSP_OBJECT_SRC = env.get("CSP_OBJECT_SRC").split(",")
Copy link
Member

Choose a reason for hiding this comment

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

Could you add documentation on how we’re configuring this for production? If possible, I’d be interested in tightening things down for this project as we don’t currently rely on any external resources on the site front-end, and maybe just Gravatar and releases.wagtail.org on the backend (?).

From a security standpoint the model where we give editor access to lots of people across all the different languages is a bit of a worst-case scenario.

@thibaudcolas thibaudcolas added this to the Post-launch milestone Oct 28, 2022
@thibaudcolas thibaudcolas removed the request for review from RealOrangeOne October 31, 2023 12:26
@thibaudcolas thibaudcolas removed this from the Post-launch milestone Oct 31, 2023
@thibaudcolas thibaudcolas merged commit d501f32 into wagtail:main Nov 15, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: No status
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants