-
Notifications
You must be signed in to change notification settings - Fork 94
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
Graphql Scrubbing can't be disabled via the Data Scrubber toggle option #2666
Comments
@Fwang36 we're looking into it! |
Looked a bit into this: It should only scrub graphql if it can create a piiconfig from datascrubbingconfig, which would be when So for the graphql to not be scrubbed, that function must return Ok(None) in [this line].( relay/relay-pii/src/convert.rs Line 125 in 08362f2
For that to happen, both datascrubbing have to be disabled, and ip address scrubbing must be disabled as well. Next step for me is to verify this, then think about any potential changes in behaviour. |
#2689) issue: #2666 Previously the graphql scrubbing would run any time there is a pii config, which would always be the case even if datascrubbing is disabled as it would simply be a config without rules. The expected behaviour would be that if you disable datascrubbing, graphql scrubbing will also be disabled. this PR moves the graphql scrubbing outside of the processor, and simply checks the datascrubbing flag for whether to scrub graphql or not. Moving it out because we don't have access to the datascrubbing config in the processor. in the future, it would be better to have a separate graphql option for the user to configure in sentry and the graphql rules could be part of the normal datascrubbing rules.
problem is fixed now, deployed and I've verified that it works as expected. graphql scrubbing now depends on whether datascrubbing is enabled, and if it's not, it still respects the "prevent storing ip address" option |
Steps to Reproduce
Specifically, I believe it is this rule in the repo.
Expected Result
Disabling the Data Scrubber should disable the scrubbing.
Actual Result
Disabling the Data Scrubber does not disable the scrubbing.
The text was updated successfully, but these errors were encountered: