Mask passwords from connection strings in logging
Author: zabbalCreated May 22, 2025Updated May 14, 2026
Is your feature request related to a problem? Please describe. If smth goes wrong, library would log connection string which contains password which might result in credentials leakage through logs.
Describe the solution you'd like Mask the password with **** while logging and make it default behavior.
Describe alternatives you've considered Manually strip and audit logs - or use some alternative tool.
Additional context The error message itself gives enough context for troubleshooting, leaking password doesn't help anyone but attacker looking through logs.
Source: golang-migrate/migrate