Skip to content

Commit e3d9dfa

Browse files
committed
Move SDK filtering/scrubbing to top
1 parent 0360a67 commit e3d9dfa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/collections/_documentation/data-management/sensitive-data.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ title: 'Sensitive Data'
33
sidebar_order: 1
44
---
55

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.
77

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
913

1014
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:
1115

@@ -26,7 +30,7 @@ Within your project settings you’ll find a **Data Scrubber** option. By defaul
2630

2731
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.
2832

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.
3034

3135
## Restricting Emails
3236

@@ -42,10 +46,6 @@ If you’ve accidentally sent sensitive data to the server it’s likely you’r
4246
- 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”.
4347
- 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.
4448

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-
4949
## Custom Event Processing using Relay
5050

5151
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

Comments
 (0)