diff options
| author | Jeremy Cline <github@declined.dev> | 2024-05-20 22:25:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-21 09:25:17 +0700 |
| commit | 32930846e6bd1a2111742f8e19067c9fe9b3b3c1 (patch) | |
| tree | 8d3067643303aa0de28f6c20d565b623404d24c8 /.github | |
| parent | fix: save sync time in daemon (#2029) (diff) | |
| download | atuin-32930846e6bd1a2111742f8e19067c9fe9b3b3c1.zip | |
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.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions
