-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add RN Replay Privacy page #11798
base: master
Are you sure you want to change the base?
Add RN Replay Privacy page #11798
Conversation
krystofwoldrich
commented
Nov 12, 2024
•
edited
Loading
edited
- Need when feat(replay): Add SentryMask and SentryUnmask native components sentry-react-native#4224 is released. (This week/next week as beta.)
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Bundle ReportChanges will increase total bundle size by 210 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
|
The SDK is recording and aggressively masking all text, images and webviews. Please don’t turn it off if you have sensitive data in your app. | ||
However, if you're working on a mobile app that's free of PII or other types of private data, you can opt out of the default text and image masking settings. To learn more about Session Replay privacy, [read our docs](/platforms/android/session-replay/privacy/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
l: Nit pick because I was initially confused on what to turn off. Probably it's clear enough based on the context even without the suggested change.
h: we need to change the link to react-native
The SDK is recording and aggressively masking all text, images and webviews. Please don’t turn it off if you have sensitive data in your app. | |
However, if you're working on a mobile app that's free of PII or other types of private data, you can opt out of the default text and image masking settings. To learn more about Session Replay privacy, [read our docs](/platforms/android/session-replay/privacy/). | |
The SDK is recording and aggressively masking all text, images, and webviews. Please don’t disable masking if you have sensitive data in your app. | |
However, if you're working on a mobile app that doesn't contain any PII or private data, you can opt out of the default text and image-masking settings. To learn more about Session Replay privacy, [read our docs](/platforms/react-native/session-replay/privacy/). |
Made a few small language tweaks.
@@ -75,7 +75,8 @@ Sampling begins as soon as a session starts. <PlatformIdentifier name="replays-s | |||
|
|||
## Privacy | |||
|
|||
The SDK is recording and aggressively redacting all text and images. We plan to add fine controls for redacting, but in this version, we just allow either on or off. The default is on. Please don’t turn it off if you have sensitive data in your app. Before the Beta is complete, we'll give you the controls you need. | |||
The SDK is recording and aggressively masking all text, images and webviews. Please don’t turn it off if you have sensitive data in your app. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this text widespread? If so, we could reword it everywhere IMO
The SDK is recording and aggressively masking all text, images and webviews. Please don’t turn it off if you have sensitive data in your app. | |
The SDK is recording and aggressively masking all text, images, and webviews by default. If your app has any sensitive data, you should only turn the default masking off after explicitly masking out any sensitive data, using the APIs described below. |
Made a few language tweaks to @bruno-garcia edits :)
@@ -75,7 +75,8 @@ Sampling begins as soon as a session starts. <PlatformIdentifier name="replays-s | |||
|
|||
## Privacy | |||
|
|||
The SDK is recording and aggressively redacting all text and images. We plan to add fine controls for redacting, but in this version, we just allow either on or off. The default is on. Please don’t turn it off if you have sensitive data in your app. Before the Beta is complete, we'll give you the controls you need. | |||
The SDK is recording and aggressively masking all text, images and webviews. Please don’t turn it off if you have sensitive data in your app. | |||
However, if you're working on a mobile app that's free of PII or other types of private data, you can opt out of the default text and image masking settings. To learn more about Session Replay privacy, [read our docs](/platforms/android/session-replay/privacy/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should reword it on the Android docs too:
However, if you're working on a mobile app that's free of PII or other types of private data, you can opt out of the default text and image masking settings. To learn more about Session Replay privacy, [read our docs](/platforms/android/session-replay/privacy/). | |
However, if you're working on a mobile app that doesn't contain any PII or private data, you can opt out of the default text and image-masking settings. To learn more about Session Replay privacy, [read our docs](/platforms/react-native/session-replay/privacy/). |
_Make sure your Sentry React Native SDK version is at least 5.36.0 or 6.3.0._ | ||
|
||
## Mask and Unmask Components |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I: Masking all items doesn't require the mentioned versions, but masking specific items surely do, so I suggest moving this part inside of Mask and Unmask Components
_Make sure your Sentry React Native SDK version is at least 5.36.0 or 6.3.0._ | |
## Mask and Unmask Components | |
## Mask and Unmask Components | |
<Note> | |
Mask and Unmask components requires a Sentry React Native SDK version 5.36.0, 6.3.0 and up. | |
</Note> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating!
title: Privacy | ||
sidebar_order: 5501 | ||
notSupported: | ||
description: "Learn how to mask parts of your app's data in Session Replay." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: "Learn how to mask parts of your app's data in Session Replay." | |
description: "Learn how to mask sensitive data that may appear in your app in Session Replay." |
<Alert> | ||
|
||
Using custom masking in your Session Replays may accidentally expose sensitive customer data. Before publishing an App with Session Replay enabled, make sure to test it thoroughly to ensure that no sensitive data is exposed. | ||
|
||
</Alert> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Alert> | |
Using custom masking in your Session Replays may accidentally expose sensitive customer data. Before publishing an App with Session Replay enabled, make sure to test it thoroughly to ensure that no sensitive data is exposed. | |
</Alert> | |
<Alert> | |
Using custom masking in your Session Replays instead of our default settings, may accidentally expose sensitive customer data. Make sure to test your app thoroughly to ensure that no sensitive data is exposed before publishing it. | |
</Alert> |
|
||
By default, our Session Replay SDK masks all text content, images, webviews, and user input. This helps ensure that no sensitive data is exposed. You can also manually choose which parts of your app's data you want to mask by using the different options listed below. | ||
|
||
To disable the default masking behavior (not to be used on applications with sensitive data): | ||
|
||
```javascript | ||
Sentry.mobileReplayIntegration({ | ||
maskAllText: false, | ||
maskAllImages: false, | ||
maskAllVectors: false, | ||
}), | ||
``` | ||
|
||
_Make sure your Sentry React Native SDK version is at least 5.36.0 or 6.3.0._ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default, our Session Replay SDK masks all text content, images, webviews, and user input. This helps ensure that no sensitive data is exposed. You can also manually choose which parts of your app's data you want to mask by using the different options listed below. | |
To disable the default masking behavior (not to be used on applications with sensitive data): | |
```javascript | |
Sentry.mobileReplayIntegration({ | |
maskAllText: false, | |
maskAllImages: false, | |
maskAllVectors: false, | |
}), | |
``` | |
_Make sure your Sentry React Native SDK version is at least 5.36.0 or 6.3.0._ | |
The Session Replay SDK masks all text content, images, webviews, and user input by default. This helps ensure that no sensitive data is exposed. You can also manually choose which parts of your app to mask by using the options listed below. | |
If your app doesn't contain any sensitive date, you can disable the default masking behavior with: | |
```javascript | |
Sentry.mobileReplayIntegration({ | |
maskAllText: false, | |
maskAllImages: false, | |
maskAllVectors: false, | |
}), | |
_Make sure your Sentry React Native SDK version is 5.36.0, 6.3.0 and up_ | |
## General Masking Rules | ||
|
||
When components are wrapped by `Unmask`, **only direct children will be unmasked**. You'll need to explicitly wrap each further child if you want them to appear in the replay. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## General Masking Rules | |
When components are wrapped by `Unmask`, **only direct children will be unmasked**. You'll need to explicitly wrap each further child if you want them to appear in the replay. | |
## General Masking Rules | |
When components are wrapped by `Unmask`, **only direct children will be unmasked**. You'll need to explicitly wrap any indirect children that you want to appear in the replay. |
## Troubleshooting | ||
|
||
The `Mask` and `Unmask` components are native components on iOS and Android and are compatible with both the New Architecture and the Legacy Architecture. | ||
|
||
The masking components behave as standard React Native `View` components. | ||
|
||
If you are experiencing issues with unmasking more than one level deep, check if the wrapped components are present in the native views hierarchy. If not your view were evaluated by React Native to be flattened. Read more about [flattening views](https://reactnative.dev/architecture/view-flattening) in the React Native documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Troubleshooting | |
The `Mask` and `Unmask` components are native components on iOS and Android and are compatible with both the New Architecture and the Legacy Architecture. | |
The masking components behave as standard React Native `View` components. | |
If you are experiencing issues with unmasking more than one level deep, check if the wrapped components are present in the native views hierarchy. If not your view were evaluated by React Native to be flattened. Read more about [flattening views](https://reactnative.dev/architecture/view-flattening) in the React Native documentation. | |
## Troubleshooting | |
The `Mask` and `Unmask` components are native on iOS and Android and are compatible with both the New and the Legacy Architecture. | |
The masking components behave as standard React Native `View` components. | |
If you're experiencing issues with unmasking that are more than one level deep, check if the wrapped components are present in the native views hierarchy. If not, it means that your view was evaluated by React Native and flattened. Read more about [flattening views](https://reactnative.dev/architecture/view-flattening) in the React Native documentation. |