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

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

bmoylan
Copy link
Contributor

@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
Contributor Author

bmoylan commented May 15, 2024

cc @imjasonh for review, thanks!

@bmoylan
Copy link
Contributor 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!

Copy link

This Pull Request is stale because it has been open for 90 days with
no activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

@bmoylan
Copy link
Contributor Author

bmoylan commented Aug 26, 2024

not stale! @jonjohnsonjr @imjasonh could you take a look at this? Thanks!

@jonjohnsonjr jonjohnsonjr reopened this Aug 26, 2024
@jonjohnsonjr jonjohnsonjr enabled auto-merge (squash) August 26, 2024 19:17
@jonjohnsonjr jonjohnsonjr merged commit a07d1ca into google:main Aug 26, 2024
21 checks passed
@bmoylan bmoylan deleted the bm/redact-auth branch September 14, 2024 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants