-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error messages output potentially sensitive information #1161
Comments
@rselbach Thanks for reporting and suggesting a fix for this issue.
Unfortunately, neither is easy to do with migrate since it involves changing logging.
|
@dhui I actually started by removing the credentials from the If we're being pendantic, |
Describe the Bug
A recent change has been made to improve error messages #1103
This change introduced a situation where if
golang-migrate
cannot connect to the database, it will output the connection string which can contain sensitive information (usernames and passwords) which can in turn can in logs.Steps to Reproduce
Steps to reproduce the behavior:
error: failed to open database, "postgresql://someusername:SeCretPassword...
Expected Behavior
Software should not output sensitive information
Migrate Version
v4.18.1
The text was updated successfully, but these errors were encountered: