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

[RUMF-1028] enable privacy by default #1049

Merged
merged 6 commits into from
Sep 21, 2021

Conversation

BenoitZugmeyer
Copy link
Member

Motivation

Let our users specify a initial privacy level for session replay. This should default to mask-forms-only.

Changes

Enable privacy by default, in particular the initialPrivacyLevel option, and change its default.

Testing

CI + tested on org2


I have gone over the contributing documentation.

@BenoitZugmeyer BenoitZugmeyer requested a review from a team as a code owner September 14, 2021 09:53
@@ -52,6 +52,9 @@ describe('startRecording', () => {
},
})
.withSession(session)
.withConfiguration({
initialPrivacyLevel: InitialPrivacyLevel.ALLOW,
Copy link
Member Author

Choose a reason for hiding this comment

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

With the default privacy level (mask forms only) data compression is too efficient (🎉), so segments are not reaching the compressed size limit.

@codecov-commenter
Copy link

Codecov Report

Merging #1049 (cbd7a09) into main (356c5a4) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1049      +/-   ##
==========================================
- Coverage   89.01%   88.98%   -0.03%     
==========================================
  Files          87       87              
  Lines        4134     4132       -2     
  Branches      950      948       -2     
==========================================
- Hits         3680     3677       -3     
- Misses        454      455       +1     
Impacted Files Coverage Δ
...ges/core/src/domain/configuration/configuration.ts 90.90% <100.00%> (-3.38%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 356c5a4...cbd7a09. Read the comment docs.

Copy link
Contributor

@acorretti acorretti left a comment

Choose a reason for hiding this comment

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

Let's rephrase MASK_FORMS_ONLY to MASK_USER_INPUT
And also InitialPrivacyLevel to DefaultPrivacyLevel

Has been discussed with PM already

@jagracey
Copy link
Contributor

@acorretti To be clear here, regarding the public facing "privacy" API spec, you mean the following changes?

Exhaustively (and redundantly) the changes are:

  1. The JS config property name currently initialPrivacyLevel to defaultPrivacyLevel .
  2. The JS config property value currently mask-forms-only to mask-user-input.
  3. The privacy attribute tag value from mask-forms-only to mask-user-input.
  4. The privacy class name from dd-privacy-mask-forms-only to dd-privacy-mask-user-input

@acorretti
Copy link
Contributor

That'd be it @jagracey 👍

@jagracey
Copy link
Contributor

LGTM

@BenoitZugmeyer BenoitZugmeyer requested a review from a team as a code owner September 21, 2021 09:15
@BenoitZugmeyer BenoitZugmeyer merged commit 2880e6b into main Sep 21, 2021
@BenoitZugmeyer BenoitZugmeyer deleted the benoit/enable-privacy-by-default branch September 21, 2021 09:54
@eddiemonge
Copy link

This is missing updated docs for https://docs.datadoghq.com/real_user_monitoring/browser

@bcaudan
Copy link
Contributor

bcaudan commented Nov 4, 2021

@eddiemonge are you looking for session replay privacy options doc?

@eddiemonge
Copy link

@bcaudan its nice that its documented there, but it should also be part of the configuration initialization docs. https://docs.datadoghq.com/real_user_monitoring/browser/#configuration

@bcaudan
Copy link
Contributor

bcaudan commented Nov 5, 2021

Indeed, it should land soon, cf #1152

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.

7 participants