atuin/crates/atuin-server-postgres
Jeremy Cline 32930846e6
fix: redact password in database URI when logging (#2032)
Previously, in the event that there was a configuration issue and the
atuin server failed to connect to PostgreSQL, it would log the password.

For example, if the password authentication failed the following log
message would be printed:

Error: failed to connect to db: PostgresSettings { db_uri:
    "postgres://atuin:definitelymypassword@db.example.com/atuin" }

This change sets the password to "****" when printing it via Debug:

Error: failed to connect to db: PostgresSettings { db_uri:
    "postgres://atuin:****@db.example.com/atuin" }

Hopefully few people use **** as the actual password.
2024-05-21 09:25:17 +07:00
..
migrations chore: move crates into crates/ dir (#1958) 2024-04-18 16:41:28 +01:00
src fix: redact password in database URI when logging (#2032) 2024-05-21 09:25:17 +07:00
build.rs chore: move crates into crates/ dir (#1958) 2024-04-18 16:41:28 +01:00
Cargo.toml fix: redact password in database URI when logging (#2032) 2024-05-21 09:25:17 +07:00