Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: updates defaultPrivacyLevel to "mask" in DatadogLoggingService #39

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

adamstankiewicz
Copy link
Member

While the 2U privacy/legal teams are evaluating the session replay privacy concerns/implications across all vendors, we want to change DatadogLoggingService's base defaultPrivacyLevel to mask, ensuring all content is masked within session replays, if enabled, by default. Currently, only user input is masked.

This will not preclude an application from overriding it, if needed via a configured environment variable. Similarly, the updated defaultPrivacyLevel: "mask" will properly interact with the Datadog HTML attributes / class names to mask/unmask specific UI elements / components (e.g., see openedx/frontend-platform#723).

@@ -67,7 +67,8 @@ class DatadogLoggingService extends NewRelicLoggingService {
trackUserInteractions: true,
trackResources: true,
trackLongTasks: true,
defaultPrivacyLevel: process.env.DATADOG_PRIVACY_LEVEL || 'mask-user-input',
defaultPrivacyLevel: process.env.DATADOG_PRIVACY_LEVEL || 'mask',
enablePrivacyForActionName: process.env.DATADOG_ENABLE_PRIVACY_FOR_ACTION_NAME || true,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also added enablePrivacyForActionName: true here, similar to the changes from this PR: https://github.com/edx/edx-internal/pull/11415

@adamstankiewicz adamstankiewicz merged commit 065b5d1 into master Aug 16, 2024
5 checks passed
@adamstankiewicz adamstankiewicz deleted the ags/mask-default-privacy-level branch August 16, 2024 14:45
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