Sentry-javascript: Feature scrubbing sensitive data support with `sanitizeKeys`

Created on 24 Jan 2020  路  3Comments  路  Source: getsentry/sentry-javascript

Is there a plan to support sanitizing data before send to the server? The following comment was found at #1564 but the issue was closed, so we would like to confirm the current status.

We will soon release a new way of how to strip sensitive data in SDKs, stay tuned.

https://github.com/getsentry/sentry-javascript/issues/1564#issuecomment-423894813

background

Current JavaScript SDK does not support this feature, users manually filter with beforeSend callback according to document. However former Raven.js supports this feature with sanitizeKeys, document here. And also other SDK supports this feature for example Ruby's SDK provides sanitize_fields.

It's worth to support this feature in new SDK when the user migrate from Raven.js to new Sentry SDK, or decide to use which SDK in new project.

Related resources

Help Wanted Feature

Most helpful comment

Hey, thanks for writing very detailed issue. We were thinking about adding this early on, however, it's not a very commonly used feature. And we already have a hard time to stay compact.
This is a very good candidate for an external integration that could be pulled down and configured from @sentry/integrations. Pull request would be much more than welcome :)

All 3 comments

Hey, thanks for writing very detailed issue. We were thinking about adding this early on, however, it's not a very commonly used feature. And we already have a hard time to stay compact.
This is a very good candidate for an external integration that could be pulled down and configured from @sentry/integrations. Pull request would be much more than welcome :)

Thank you for you response! I try to look at @sentry/integrations first.

@kamilogorek Sorry for late response. I just created pull request #2422 . Thank you in advance. 馃憤

Was this page helpful?
0 / 5 - 0 ratings