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

fix: redact.URL uses (*URL).Redacted to omit basic-auth password #1947

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bmoylan
Copy link

@bmoylan bmoylan commented May 14, 2024

When a request URL contains basic auth information, that URL segment is ending up in the logs unredacted. Use the standard library's Redacted() function to fix this.

@bmoylan
Copy link
Author

bmoylan commented May 15, 2024

cc @imjasonh for review, thanks!

@bmoylan
Copy link
Author

bmoylan commented May 23, 2024

Hi @jonjohnsonjr @imjasonh this small change should fix leaking tokens into logs, hoping you can take a quick look!

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

1 participant