Skip to content

Release 2706

Choose a tag to compare

@github-actions github-actions released this 20 Oct 09:26
1c6fa83

Trello card

Trello-659

Context

The CSRF error is unavoidable and we will see them happen on occasion (for example when a candidate's session times out or if they cleared their cookies before submitting a form). We only really care about these if they happen on a scale that is unexpected (several per minute or hour).

To avoid spamming Slack with errors we can't resolve we will instead have Sentry ignore them (which it does by default) and increment a Prometheus counter that we can then alert on at a given threshold.

Changes proposed in this pull request

  • Record CSRF token errors as a metric

Guidance to review

Corresponding PR to add an alert rule