You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/collections/_documentation/data-management/sensitive-data.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,13 @@ title: 'Sensitive Data'
3
3
sidebar_order: 1
4
4
---
5
5
6
-
As with any third party service it’s important to understand what data is being sent to Sentry, and where relevant ensure sensitive data either never reaches the Sentry servers, or at the very least it doesn’t get stored. Our primary approach to this problem is a pessimitic view: you accidentally sent data to Sentry and you either want to remove it, or you want to ensure it doesn’t get stored.
6
+
As with any third party service it’s important to understand what data is being sent to Sentry, and where relevant ensure sensitive data either never reaches the Sentry servers, or at the very least it doesn’t get stored. We recommend filtering or scrubbing sensitive data within the SDK, so that data it not sent with the event, and also configuring server-side scrubbing to ensure the data is not stored.
7
7
8
-
## Server-Side Filtering
8
+
## Custom Event Processing in the SDK
9
+
10
+
In the SDKs you can configure a `before-send` function which is invoked before an event is sent and can be used to modify the event data and remove sensitive data. See [_Filtering Events_]({%- link _documentation/error-reporting/configuration/filtering.md -%}) for more information.
11
+
12
+
## Server-Side Scrubbing
9
13
10
14
Within your project settings you’ll find a **Data Scrubber** option. By default this is enabled, and we highly recommend you keep it that way. With it enabled, Sentry will scrub the following:
11
15
@@ -26,7 +30,7 @@ Within your project settings you’ll find a **Data Scrubber** option. By defaul
26
30
27
31
You can choose to expand the keys which are scrubbed by the server, as well as prevent IP addresses from being stored. The latter is particularly important if you’re concerned about PII and using our Browser JavaScript SDK.
28
32
29
-
Additionally, some SDKs will also allow you to filter data ahead of time following similar patterns.
33
+
As mentioned earlier, configure scrubbing within SDK if possible so that sensitive data is not sent with the request.
30
34
31
35
## Restricting Emails
32
36
@@ -42,10 +46,6 @@ If you’ve accidentally sent sensitive data to the server it’s likely you’r
42
46
- If you need to wipe just a single event, you’ll find the ability to bulk delete all sampled events under a rollup by visiting the rollup details page and selecting “Delete”.
43
47
- If you send sparse events to a project (potentially all of them), your only option is to remove the project and re-create it. Keep in mind this will revoke API credentials, so you likely want to do this in the reverse order.
44
48
45
-
## Custom Event Processing in the SDK
46
-
47
-
In the SDKs you can also set a function `before-send` which is invoked before events are sent which can be used to modify the events and remove bad data. See [_Filtering Events_]({%- link _documentation/error-reporting/configuration/filtering.md -%}) for more information.
48
-
49
49
## Custom Event Processing using Relay
50
50
51
51
In addition you have the option to put a proxy between your applications and Sentry that can strip sensitive data from your events. Head over to [_Relay_]({%- link _documentation/data-management/relay/index.md -%}).
0 commit comments