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

feat(security): add CSP violation reporting #302

Merged
merged 2 commits into from
Jul 5, 2023

Conversation

cweider
Copy link
Collaborator

@cweider cweider commented Jul 4, 2023

Sentry.io provides a CSP violation reporting endpoint; we should use it. This change adds the environment variable, SENTRY_REPORT_URI. If present, it is handed to django-csp and used for the report-uri directive.

Fixes: #287

Sentry.io provides a CSP violation reporting endpoint;
we should use it. This change adds the environment
variable, `SENTRY_REPORT_URI`. If present, it is handed
to `django-csp` and used for the `report-uri` directive.

Fixes: freelawproject#287
@cweider cweider requested a review from mlissner July 4, 2023 00:54
@cweider cweider self-assigned this Jul 4, 2023
@mlissner mlissner merged commit dec8889 into freelawproject:main Jul 5, 2023
@mlissner
Copy link
Member

mlissner commented Jul 5, 2023

Looks great, thank you. Let's see how this goes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Sentry CSP Report URI
2 participants