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

logs: redact in URL passwords #133

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

Conversation

drakkan
Copy link

@drakkan drakkan commented May 12, 2021

So if we have URL like this one http://user:[email protected]/ the password is not logged

So if we have URL like this one http://user:[email protected]/ the
password is not logged
@hashicorp-cla
Copy link

hashicorp-cla commented May 12, 2021

CLA assistant check
All committers have signed the CLA.

@drakkan
Copy link
Author

drakkan commented May 12, 2021

the Redacted method was added in 1.15 so tests fail on previous Go versions.

If you are interested in merging this patch and at the same time you want to keep compatibility with older Go versions I could add a local method to redact the passwords instead of using URL.Redacted, thank you

drakkan added a commit to drakkan/sftpgo that referenced this pull request May 12, 2021
go-retryablehttp does not redact credentials, so we still log them
when we use it

hashicorp/go-retryablehttp#133
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants