getsentry / raven-python

Raven is the legacy Python client for Sentry (getsentry.com) — replaced by sentry-python
https://sentry.io
BSD 3-Clause "New" or "Revised" License
1.68k stars 657 forks source link

2.0.x Problem: adding additional tags to be sanitised #1250

Open savin-berlin opened 6 years ago

savin-berlin commented 6 years ago

I have a Problem with raven.processors.SanitizePasswordsProcessor while adding additional items which need to be sanitized. If I add additional items to be sanitized, it doesn't works for additional tags which I send with the merge function -> client.context.merge({'tags': "t"})

These is two ways how I tried to add additional sanitize_items

  1. sanitize_keys = ['_consumer_key', '_consumer_secret', '_access_token', '_access_token_secret'], or
  2. client.module_cache['raven.processors.SanitizePasswordsProcessor'].KEYS = frozenset(['sentry_dsn', 'password', 'passwd', 'access_token', 'secret', 'apikey', 'api_key', 'authorization', '_consumer_key', '_consumer_secret', '_access_token', '_access_token_secret'])

And unfortunately those keys are still be send to the server in the bunch of tags.

U would really happy about your responce=)

Sunny Week Egor