Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Unable to Sanitize Customer Headers #1344

Open
nandakarvapaly opened this issue Jan 7, 2019 · 0 comments
Open

Unable to Sanitize Customer Headers #1344

nandakarvapaly opened this issue Jan 7, 2019 · 0 comments

Comments

@nandakarvapaly
Copy link

nandakarvapaly commented Jan 7, 2019

I wanted to sanitize some of the header key's values in Sentry logging, before sending the data to Sentry Server.

I provided a Sentry config as mentioned below.
app.config['SENTRY_CONFIG'] = {
'processors': ['raven.processors.SanitizeKeysProcessor', 'raven.processors.SanitizePasswordsProcessor'],
'sanitize_keys': ["Host", "User-Agent"]
}

But still when we get Sentry error and I still see the value for "Host", "User-Agent".
Actually we have a custom Authentication Header which I wanted to sanitize but for testing I'm checking on "Host", "User-Agent" fields.

I have also tried providing processors as 'SanitizeKeysProcessor','SanitizePasswordsProcessor' without
appending with 'raven.processors', but still no luck.

Please let me know if there are any other processor's I need to use or different property.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant