Skip to content

feat: Add obfuscation rules support#128

Closed
skatti97 wants to merge 13 commits intorelease/30MAR2026from
Obfuscation
Closed

feat: Add obfuscation rules support#128
skatti97 wants to merge 13 commits intorelease/30MAR2026from
Obfuscation

Conversation

@skatti97
Copy link
Copy Markdown

@skatti97 skatti97 commented Apr 8, 2026

Summary

  • Adds regex-based obfuscation rules that mask sensitive data (user IDs, tokens, account numbers, PII in URLs) before events are transmitted to New Relic
  • Introduces ObfuscationRule (pattern + replacement pair) and ObfuscationEngine (applies rules to event batches)
  • Hooks into OptimizedHttpClient.sendEvents() — the single convergence point for all event paths (regular events, QOE, crash recovery, dead-letter retries)
  • Rules are applied to copied event maps, not originals, so failed batches retry cleanly without double-obfuscation

@skatti97 skatti97 changed the base branch from master to stable April 8, 2026 10:02
@skatti97 skatti97 changed the base branch from stable to stable-beta April 8, 2026 10:03
@skatti97 skatti97 changed the title feat: Obfuscation feat: Add obfuscation rules support Apr 8, 2026
@skatti97 skatti97 changed the base branch from stable-beta to release/30MAR2026 April 10, 2026 08:04
@skatti97 skatti97 closed this Apr 10, 2026
@ametku
Copy link
Copy Markdown
Contributor

ametku commented Apr 10, 2026

closing this PR as this has superfluous commits from stable-beta

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.

2 participants