Repository navigation
fix(core): [Remove sendDefaultPii 3] Filter sensitive URL fragment values - #6814
Merged
Merged
Conversation
Apply the URL query parameter Data Collection policy to fragments so tokens and other sensitive values are not attached in plaintext. Preserve hash routes, anchors, and encoded parameter text while keeping existing query filtering behavior unchanged.
Contributor
PR risk: mediumFor commit Main concerns: data sent to Sentry, reach, public contract. This label is a hint for reviewers, not an approval. |
📲 Install BuildsAndroid
|
This was referenced Nov 30, 2026
adinauer
marked this pull request as ready for review
November 30, 2026 14:07
adinauer
requested review from
0xadam-brown and
runningcode
and removed request for
a team
November 30, 2026 14:07
romtsn
reviewed
Nov 30, 2026
Move the PR #6814 changelog entry to Breaking Changes and describe how Data Collection now filters or removes URL fragments. Co-Authored-By: Claude <[email protected]>
1 of 6 tasks
Base automatically changed from
fix/remove-send-default-pii-v9-empty-cookies
to
9.x.x
November 30, 2026 16:30
Resolve the URL query parameter collection behavior once per parsed URL and reuse it for query and fragment filtering. This avoids allocating the default deny list twice. Co-Authored-By: Claude <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Stack (Remove sendDefaultPii)
📜 Description
Apply the
urlQueryParamsData Collection policy to URL fragments before attaching them to requests, spans, and HTTP breadcrumbs. Sensitive fragment parameters are filtered using the same deny-list and allow-list behavior as query parameters, while ordinary anchors, hash-route paths, and encoded parameter text remain unchanged.Existing query parameter filtering keeps its current behavior.
💡 Motivation and Context
URL fragments can carry sensitive values, including OAuth and OpenID Connect tokens, and hash-based applications can place query parameters after the fragment. Data Collection specification v0.19.0 requires
urlQueryParamsto filter these values and to omit fragments entirely when collection is off.💚 How did you test it?
UrlUtilsTestandHttpUtilsTesttests.make format api.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
None.