Skip to content

Sentry: recursive event scrubbing - #571

Open
tejas7777 wants to merge 1 commit into
masterfrom
chore/sentry-event-scrubbing
Open

tejas7777 wants to merge 1 commit into
masterfrom
chore/sentry-event-scrubbing

Conversation

@tejas7777

@tejas7777 tejas7777 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Issue number: Related to #502

Technical description of changes

  • init_sentry passes EventScrubber(denylist=SCRUBBED_KEYS, recursive=True): nested keys are scrubbed, and DB driver / SQLAlchemy parameter locals (dsn, parameters, distilled_parameters, ...) are filtered by name.

Description for the non-dev team to understand

No user-facing change. Error reports carry less raw data.

Recreation Steps

tests/test_parity.py builds events from a failed connect and a failed query and checks the scrubbed output.

Manual testing required

None.

Checklist

  • Issue number added
  • Tests: tests/test_parity.py 32 passed
  • make lint passes (ruff + ty)
  • API surface: none
  • Schema change: none

🤖 Generated with Claude Code

Scrub nested keys in event payloads and also filter DB driver and SQLAlchemy parameter locals by name.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tejas7777 tejas7777 self-assigned this Oct 13, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants