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

Unable to Sanitize Customer Headers #1344

@nandakarvapaly

Description

@nandakarvapaly

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions