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

Redact password from URL in infof logging #1559

Merged
merged 1 commit into from Dec 17, 2021

Conversation

igorwwwwwwwwwwwwwwwwwwww
Copy link
Contributor

The infof call that logs requests currently leaks the basic auth password through the URL. By using URL.Redacted(), we can replace the password with "xxxxx" in the log message.

The infof call that logs requests currently leaks the basic auth password through the URL. By using URL.Redacted(), we can replace the password with "xxxxx" in the log message.
@igorwwwwwwwwwwwwwwwwwwww
Copy link
Contributor Author

There may be a similar issue in #1459.

@olivere
Copy link
Owner

olivere commented Dec 13, 2021

Thanks for this. 🙏 Will merge it in the next release.

@olivere olivere added this to the 7.0.30 milestone Dec 13, 2021
@olivere olivere merged commit 66fa8f9 into olivere:release-branch.v7 Dec 17, 2021
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.

None yet

2 participants