Skip to content

fix(analytics): scrub sensitive event properties - #5759

Open
feiiiiii5 wants to merge 1 commit into
Aider-AI:mainfrom
feiiiiii5:fix/analytics-sensitive-events
Open

feiiiiii5 wants to merge 1 commit into
Aider-AI:mainfrom
feiiiiii5:fix/analytics-sensitive-events

Conversation

@feiiiiii5

Copy link
Copy Markdown

Fixes #5621

Summary

  • Scrub free-form analytics properties at the event boundary so provider exception text, URL query values, local paths, and credential-like assignments do not leave the process.
  • Preserve numeric metrics as numbers and cap oversized strings.
  • Redact non-HTTP URL schemes and malformed URLs conservatively.

Testing

  • pytest -q tests/basic/test_analytics.py — 7 passed.
  • The new boundary regression test fails on base 5dc9490b because the query value and local path remain in the event; it passes on this branch.
  • python -m py_compile aider/analytics.py tests/basic/test_analytics.py — passed.

@CLAassistant

CLAassistant commented Sep 24, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Telemetry events ship raw, unredacted exception text (provider request URLs / local paths) to PostHog

2 participants