Repository navigation
fix(sentry): harden operational error privacy filters - #736
Merged
Merged
Conversation
Add shared beforeSend sanitizers for API and dashboard that strip auth headers, cookies, query strings, request bodies, Sentry user fields, and tt_live_* keys. Disable default PII and local variables, set tracesSampleRate to 0, and disable incoming request-body buffering. Wrap sanitization in fail-closed try/catch so pathological events cannot drop error reporting. Update /privacy to describe Sentry as Hosted Cloud operational monitoring with EU ingest (not zero-PII or full residency). Not deployed; post-deploy live Sentry event check pending.
This was referenced Oct 5, 2026
Merged
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.
Summary
Hardens Hosted Cloud operational Sentry error reporting (not customer telemetry ingest):
sanitizeSentryEvent/safeSanitizeSentryEventfor API (@sentry/node) and dashboard (@sentry/nextjs) that strips auth/API-key/session/cookie headers, request bodies, cookies, query strings, Sentryuser, andtt_live_*keys while retaining exception type/message/stack, method, path/host, and non-sensitive headers.sendDefaultPii: false,includeLocalVariables: false,tracesSampleRate: 0.httpIntegration({ maxIncomingRequestBodySize: "none" })(dashboard also keeps Next’sdisableIncomingRequestSpans: true).beforeSenduses fail-closed try/catch: if the sanitizer walk throws (throwing getters / hostile Proxy), high-risk fields are removed with per-field guards and the event is still returned (nevernull)./privacydescribes Sentry as operational monitoring with EU ingest hostingest.de.sentry.io, explicitly not zero-PII or full EU residency.NEXT_PUBLIC_SENTRY_DSN(unchanged).Guarantees
Tests
Notes
main@ v1.17.26; targetsdevelopper repo convention.