-
Notifications
You must be signed in to change notification settings - Fork 74
[Feat][SDK-601] Add built in scrubbing #377
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
Open
buongarzoni
wants to merge
24
commits into
master
Choose a base branch
from
feat/SDK-601/add-built-in-scrubbing
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
2ba9494
feat(scrubbing): add StringUrlSanitizer and DefaultUrlSanitizer
buongarzoni 9049736
feat(scrubbing): add ScrubDataTransformer
buongarzoni 7a9ca73
feat(config): expose redactedKeys and urlSanitizer
buongarzoni 00dc4cb
feat(notifier): apply built-in scrubbing to every payload
buongarzoni bf3629d
refactor(okhttp): reuse the shared DefaultUrlSanitizer
buongarzoni 9fee327
refactor(api): update imports
buongarzoni 347ad48
refactor(scrubbing): update imports
buongarzoni 306b105
refactor(config): update imports
buongarzoni 52d5d40
refactor(okhttp): reuse the shared DefaultUrlSanitizer
buongarzoni 82fb70b
fix(scrubbing): scrub Frame.locals in Body.rollbarThreads
buongarzoni 8c06fd1
fix(scrubbing): match percent-encoded query parameter names
buongarzoni a09f485
fix(scrubbing): scrub Request.params and Request.metadata
buongarzoni 57399ec
fix(scrubbing): traverse collections and arrays when scrubbing nested…
buongarzoni 5482e72
fix(telemetry): sanitize URLs recorded as network telemetry events
buongarzoni f7bc6f3
test(scrubbing): cover ordering, reconfiguration and the okhttp sanit…
buongarzoni 4c21b07
docs: add scrubbing documentation
buongarzoni 1fc3ed6
feat(scrubbing): seed field scrubbing with a built-in key list
buongarzoni f016ac2
feat(config): expose useDefaultRedactedKeys
buongarzoni 9ee5bc7
test(scrubbing): cover the built-in key list and the opt-out
buongarzoni f357b6c
test(scrubbing): prove secrets are redacted with no configuration
buongarzoni 2ede510
docs: document the built-in redacted key list
buongarzoni 0aa3993
perf(scrubbing): match literal keys without the regex engine
buongarzoni 0c5a376
fix(scrubbing): redact Message.metadata in the body content + ignore …
buongarzoni 01cd471
fix(scrubbing): redact Message.metadata in the body content + ignore …
buongarzoni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
perf(scrubbing): match literal keys without the regex engine
- Loading branch information
commit 0aa39930f6e661b951c804e4100b11cd4970850b
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
[P1] Sanitize URLs in network telemetry events
RollbarBase.recordNetworkEventFor(...)passes its URL directly to the tracker, which stores it unchanged. Those events are later carried inBody.telemetryEvents, butscrubBody()only rebuilds trace content and thread traces. A caller can therefore recordhttps://user:[email protected]/path?token=secretand ship both userinfo and query string despite the built-in scrubber. Please apply the configured sanitizer before recording network telemetry, or rebuild network telemetry events here, and cover the public notifier API with a regression test.