Skip to content

Commit

Permalink
docs: strict CSP, Sentry report-uri config
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Apr 14, 2023
1 parent 2faabec commit 02b5ef9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/configuration/content-security-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@

> The HTTP `Content-Security-Policy` response header allows web site administrators to control resources the user agent is
> allowed to load for a given page.
>
> With a few exceptions, policies mostly involve specifying server origins and script endpoints. This helps guard against
> cross-site scripting attacks
!!! warning "Strict CSP"

Benefits configures a Strict Content Security Policy. Read more about Strict CSP from Google: <https://csp.withgoogle.com/docs/strict-csp.html>.

## `django-csp`

!!! tldr "django-csp docs"
Expand Down
10 changes: 10 additions & 0 deletions docs/configuration/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,15 @@ Enables [sending events to Sentry](../../deployment/troubleshooting/#error-monit

Segments errors by which deployment they occur in. This defaults to `local`, and can be set to match one of the [environment names](../../deployment/infrastructure/#environments).

### `SENTRY_REPORT_URI`

!!! tldr "Sentry docs"

[Security Policy Reporting](https://docs.sentry.io/product/security-policy-reporting/)

Collect information on Content-Security-Policy (CSP) violations. Read more about [CSP configuration in Benefits](./content-security-policy.md).

To enable report collection, set this env var to the authenticated Sentry endpoint.

[app-service-config]: https://docs.microsoft.com/en-us/azure/app-service/configure-common?tabs=portal
[getting-started_create-env]: ../getting-started/README.md#create-an-environment-file

0 comments on commit 02b5ef9

Please sign in to comment.