Repository navigation
docs(data-collection): Gate URL fragments behind urlQueryParams - #20904
Merged
Merged
Conversation
Co-Authored-By: Charly Gomez <20254395+chargome@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
chargome
marked this pull request as ready for review
November 19, 2026 09:43
chargome
approved these changes
Nov 19, 2026
Contributor
|
Getting ready to monitor this change · Rollout details
|
timfish
approved these changes
Nov 19, 2026
1 of 6 tasks
dingsdax
approved these changes
Nov 19, 2026
chargome
added a commit
that referenced
this pull request
Nov 23, 2026
## DESCRIBE YOUR PR OAuth authorization codes and similar one-time codes (`?code=...`) can be exchanged for credentials, but none of the current sensitive denylist terms match `code`. The SDKs therefore send these values in plaintext by default. This PR adds `code` to the sensitive denylist in the data collection spec and bumps the spec to 0.20.0. The denylist uses partial matching, so `code` also filters values for keys such as `zipcode`, `country_code`, and `error_code`. That's the same tradeoff the existing `key` and `sid` terms already make. Stacked on #20904, which takes 0.19.0. Merge that one first, then retarget this PR to `master`. ## IS YOUR CHANGE URGENT? - [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD - [ ] Other deadline: YYYY-MM-DD - [x] No deadline: Not urgent, can wait up to 1 week+ ## PRE-MERGE CHECKLIST - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) <!-- junior-request-attribution:start --> via @chargome. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC02TB1YBNGJ%3A1795032929.907009 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC02TB1YBNGJ%3A1795032929.907009) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC02TB1YBNGJ%3A1795032929.907009/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Charly Gomez <20254395+chargome@users.noreply.github.com>
This branch was successfully deployed
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.
DESCRIBE YOUR PR
The data collection spec says what
urlQueryParamsdoes to query strings, but it doesn't mention URL fragments. Fragments can carry the same secrets. OAuth and OpenID Connect login redirects can return tokens in the fragment (#access_token=...), and apps with hash-based routing put their query string there (#/callback?token=...).This PR puts the fragment under
urlQueryParams(spec 0.19.0):urlQueryParamsisoff, SDKs MUST NOT collect the fragment and MUST remove it from every URL they attach (url.full,http.fragment,request.url, breadcrumb data).urlQueryParamsrules and terms tokey=valuepairs in the fragment, the same way they do for query params. When the fragment contains a?, the pairs come after the first?. Text outside akey=valuepair, such as#detailsor#/settings, is kept as-is.urlQueryParamsrow in the options table, and adds a changelog entry.Open decisions
=: this draft keeps them as-is so#details-style anchors stay useful for debugging. Cookies take the stricter route: a nameless segment is always[Filtered]. Should fragments do the same?codeisn't on the sensitive denylist: OAuth authorization-code redirects (?code=...or#code=...) aren't scrubbed by the default denylist. --> we will add that to the default listIS YOUR CHANGE URGENT?
PRE-MERGE CHECKLIST
via @chargome.
--
View Session [Sentry]