-
Notifications
You must be signed in to change notification settings - Fork 514
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
Implement EventScrubber #1943
Implement EventScrubber #1943
Conversation
074b739
to
85d7458
Compare
8293c19
to
2cba3d9
Compare
37128b8
to
7bbc515
Compare
7bbc515
to
8b19bf9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just walk the whole event structure recursively and apply scrub_dict()
?
As the implementation is now, when we (or somenone else) adds a top level key "super_secret_stuff" it will not be touched.
I get that having those seperate scrubbing functions makes it convenient for a user to derive a custom scrubber that works like the original one, but does not scrub for example the breadcrumbs. |
But maybe add a That does something like:
(or something like |
Only python has the I think this is fine for a first version and we can see how and if users use this at all and wait for feedback. |
Ok. |
we can't ensure and that's fine |
Add a new
EventScrubber
class that scrubs certain potentially sensitive interfaces with aDEFAULT_DENYLIST
. The default scrubber is automatically run ifsend_default_pii = False
.Usage
As outlined in https://github.com/getsentry/rfcs/blob/main/text/0062-controlling-pii-and-credentials-in-sd-ks.md
closes #1897
docs: getsentry/sentry-docs#6489