Skip to content

Redact DB credentials on SQLAlchemy error #135

@bram-vdberg

Description

@bram-vdberg

At the moment some SQLAlchemy errors are displaying sensitive database credentials in the logs. For example, on a connection error the logs will show:

sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at [db url] ... failed

This error will display the database url, database user, and database. These details should be redacted to prevent leaking sensitive information in the logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions