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

fix(py): Compile regex patterns in PII config validation #2152

Merged
merged 5 commits into from
May 24, 2023

Conversation

jjbayer
Copy link
Member

@jjbayer jjbayer commented May 24, 2023

In relay_validate_pii_config, compile all regex patterns contained in PII config, such that invalid patterns configured in the UI cannot be saved.

Fixes #1626

#skip-changelog

@jjbayer jjbayer changed the title Fix/pii config compile validate fix(py): Compile regex patterns in PII config validation May 24, 2023
@jjbayer jjbayer marked this pull request as ready for review May 24, 2023 11:25
@jjbayer jjbayer requested a review from a team May 24, 2023 11:25
@jjbayer jjbayer merged commit ae6a4b0 into master May 24, 2023
19 of 20 checks passed
@jjbayer jjbayer deleted the fix/pii-config-compile-validate branch May 24, 2023 13:06
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- Compile regexes in PII config validation. ([2152](https://github.com/getsentry/relay/pull/2152))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- Compile regexes in PII config validation. ([2152](https://github.com/getsentry/relay/pull/2152))
- Compile regexes in PII config validation. ([#2152](https://github.com/getsentry/relay/pull/2152))

jjbayer added a commit to getsentry/sentry that referenced this pull request May 25, 2023
volokluev pushed a commit to getsentry/sentry that referenced this pull request May 30, 2023
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.

InvalidJsonError: Compiled regex exceeds size limit | relay_cabi::processing::relay_pii_strip_event
2 participants