-
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
fix(pii): prevent ip derivation if already scrubbed before #4491
Conversation
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.
We should have a test case for this, maybe an integration test using relay_chain
?
.any(|r| r.ty == RemarkType::Removed); | ||
if !scrubbed_before { | ||
// In an ideal world all SDKs would set {{auto}} explicitly. | ||
if let Some("javascript") | Some("cocoa") | Some("objc") = platform { |
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.
I don't think I've ever seen if let
used with this sort of pattern before.
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.
Me neither, but I like its expressiveness
# Conflicts: # CHANGELOG.md
This PR adds remarks if the user IP was PII scrubbed to prevent assuming that empty IP means
{{auto}}
for certain platforms.fix #4480