Skip to content
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

Don't output sensitive information on error #1162

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

rselbach
Copy link
Contributor

@rselbach rselbach commented Sep 12, 2024

A recent change introduced a situation where potentially sensitive information in the form of connection strings (which can often contain usernames and passwords) can end up in logs. Please consider applying.

This PR resolves #1161

@coveralls
Copy link

Coverage Status

coverage: 56.319%. remained the same
when pulling e22d012 on rselbach:rselbach/no-sensitive-info
into 555501f on golang-migrate:master.

@dhui
Copy link
Member

dhui commented Sep 23, 2024

Erring on the side of safety and merging this in. There's a discussion in #1161 on how to safely log the db url

@dhui dhui merged commit c378583 into golang-migrate:master Sep 23, 2024
8 checks passed
@hae-andrew-young
Copy link

hae-andrew-young commented Oct 30, 2024

@dhui When will this fix be released? Specifically in the docker image.

@jaredallard
Copy link

+1 to wanting a release, I was very surprised to see DB credentials logged, and I'm sad I can't update to get this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error messages output potentially sensitive information
5 participants