getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.97k stars 1.57k forks source link

"Additional data" displays [Filtered], replaced by PII rule creditcard:filter #2451

Closed hinok closed 4 years ago

hinok commented 4 years ago

Package + Version

Version:

5.12.1

Description

I'm trying to integrate fullstory with sentry by sending fullstory session url to sentry as additional data, like below:

  /**
   * https://help.fullstory.com/hc/en-us/articles/360020828073-FS-getCurrentSessionURL-Retrieving-a-session-URL-at-time-of-recording
   * https://help.fullstory.com/hc/en-us/articles/360020624234-Roll-Your-Own-Integration
   */
  // eslint-disable-next-line no-underscore-dangle
  window._fs_ready = () => {
    Sentry.configureScope((scope) => {
      scope.setExtra('fullstoryUrl', window.FS.getCurrentSessionURL());
    });
  };

In the sentry web application, the fullstoryUrl appears but has filtered out some parts by PII creditcard:filter rule, like below:

Zrzut ekranu 2020-02-24 o 16 54 40

fullstoryUrl looks like that:

https://app.fullstory.com/ui/<accountId>/session/5472936014675968%3A4548674178482176"

It seems that sentry recognize this part

5472936014675968

as credit card number...

Is there any way to disable these filtering rules or maybe should I somehow send that url by using different method?

untitaker commented 4 years ago

Please add fullstoryUrl to your Safe Fields in your project settings. More information about server-side scrubbing can be found at https://docs.sentry.io/data-management/sensitive-data/#server-side-scrubbing.

untitaker commented 4 years ago

let me know if that works for you, i'll reopen then

hinok commented 4 years ago

@untitaker Thank you very much! It works 💪

ismeyueyue commented 2 years ago

Please add fullstoryUrl to your Safe Fields in your project settings. More information about server-side scrubbing can be found at https://docs.sentry.io/data-management/sensitive-data/#server-side-scrubbing.

Page Not Found ?

hinok commented 2 years ago

@Humoon You can try https://docs.sentry.io/product/data-management-settings/scrubbing/

ismeyueyue commented 2 years ago

@Humoon You can try https://docs.sentry.io/product/data-management-settings/scrubbing/

Thks !