Skip to content

feat: implement analytics privacy preservation with differential priv…#447

Open
sheyman546 wants to merge 2 commits into
rinafcode:mainfrom
sheyman546:feat/analytics-differential-privacy
Open

feat: implement analytics privacy preservation with differential priv…#447
sheyman546 wants to merge 2 commits into
rinafcode:mainfrom
sheyman546:feat/analytics-differential-privacy

Conversation

@sheyman546
Copy link
Copy Markdown

…acy (#407)

  • Add differentialPrivacy utility with Laplace and Gaussian noise mechanisms, randomized response for booleans, and sanitizeEventProperties helper
  • Add PrivacyBudgetManager to track and enforce cumulative epsilon budget per session; events are suppressed when the budget is exhausted
  • Update MobileAnalyticsService to sanitize numeric/boolean event properties with DP noise before forwarding to the analytics backend
  • Update AnalyticsProvider to accept privacyConfig and noiseType props
  • Add 23 unit tests covering all mechanisms and edge cases (23/23 passing)

closes #407

…acy (rinafcode#407)

- Add differentialPrivacy utility with Laplace and Gaussian noise mechanisms,
  randomized response for booleans, and sanitizeEventProperties helper
- Add PrivacyBudgetManager to track and enforce cumulative epsilon budget
  per session; events are suppressed when the budget is exhausted
- Update MobileAnalyticsService to sanitize numeric/boolean event properties
  with DP noise before forwarding to the analytics backend
- Update AnalyticsProvider to accept privacyConfig and noiseType props
- Add 23 unit tests covering all mechanisms and edge cases (23/23 passing)
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 28, 2026

@sheyman546 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER
Copy link
Copy Markdown
Contributor

kindly resolve conflict and fix workflow.

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.

Implement app analytics privacy preservation with differential privacy

2 participants