Skip to content

Passwords in repr(url) #126

@hynek

Description

@hynek

hi,

any chance you could redact the password from URLs? I.e.:

>>> import ada_url
>>> ada_url.URL("https://hynek:leaked-password@example.com")
<URL "https://hynek:leaked-password@example.com/">

repr()s pop up everywhere including logging and error reporting like Sentry – you can leave them in str(), of course.

I like to use URL objects in my configurations so that makes it double-troubling if I have database credentials flying around.

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