Repository navigation
fix(sentry): guard operator privacy against SDK v11 defaults - #752
Merged
Merged
Conversation
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.
Builds on merged privacy hardening #736 (f21e053); leaves its EU privacy copy and existing scrubber intact. Prevents a future Sentry v11 default change from broadening operator monitoring. No dependency, DSN, secret, production-data, deployment, or main-branch changes.
Policy and tightening
sendDefaultPii: false,includeLocalVariables: false,tracesSampleRate: 0,tracePropagationTargets: [], replay rates 0,enableLogs: false; Replay integrations are removed. Existing Http body buffering suppression and Next incoming-span suppression stay.dataCollection:userInfo,cookies, request/responsehttpHeaders,queryParams,urlQueryParams,databaseQueryData,stackFrameVariables,queuesall false;httpBodies: []; GraphQL document/variables and GenAI inputs/outputs false.frameContextLines: 7retains the v10 source-context baseline.beforeSendextends existing filtering to nested users/IPs, response bodies, DB/AI/GraphQL contexts and dotted attributes, and frame variables. Existing Authorization/X-API-Key/Cookie/Set-Cookie filtering, query stripping andtt_live_*redaction remain. Request data is dropped even without other request metadata. If traversal throws, risky headers/contexts/extras/breadcrumbs/response fields are removed.beforeBreadcrumbscrubs retained breadcrumbs and strips navigation URL queries; console, DB/query, AI and GraphQL breadcrumbs are dropped to prevent unstructured payload collection.beforeSendTransactiondrops transactions defensively.SDK verification
Installed 10.66.0 types and resolver confirm
dataCollectionexists; partial objects bypass restrictivesendDefaultPiidefaults. The complete policy covers every installed resolver category. Verified 10.66 resolver, develop resolver, and v11 migration guide. v11 renamesqueryParamstourlQueryParamsand addsqueues; those future fields are ignored by v10. A major-version test fails for either installed SDK until a privacy review, including v11 span streaming. No claim that v11 runtime behavior was tested.Validation
pnpm install --frozen-lockfile,pnpm lint,pnpm build: passed.pnpm test: 1,417 passed, 128 skipped (API 1,050/128; dashboard 227; core 67; vite plugin 14; node 27; next 15; publish guards 17).pnpm --filter api exec tsc --noEmitand dashboard equivalent: fail with exactly the base diagnostics (106 API and 6 dashboard), confirmed by temporarily testing unchanged HEAD and comparing error lines. Production build passes; no new type errors.security_invoker; isolated PostgreSQL 16 cannot initialize shared memory under the sandbox. CI uses PostgreSQL 16 and enables DB integration tests.CI on final commit
a2d6748: all checks passed. CI run passed install, lint, PostgreSQL 16 migrations, tests with DB integration enabled, production builds, and committed SDK dist verification. CI tests: 1,537 passed, 8 skipped (API 1,170/8; dashboard 227; core 67; vite plugin 14; node 27; next 15; publish guards 17). CodeQL, maintainer-review workflow, and bugbot-review workflow passed; no review comments were present at completion. Human approval is still part of the normal review flow. PR remains open, unmerged, and undeployed.Do not merge or deploy this PR.