Skip to content

Install a breadcrumb sanitizer when enabling sentry #51

@dave-shawley

Description

@dave-shawley

The sentry logging integration collects breadcrumbs based on log statements which is a great diagnostic tool. However, it will collect anything at the logging.INFO level and above in the current version. If you log URLs that contain auth information such as database DSNs, you will leak passwords. We should install a before_breadcrumb hook that does a "best effort" sanitization of URLs using regular expressions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions