-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/go: redact passwords in urls in "go bug" #37873
Comments
I think this is the same issue as in CL 223098. I'd lean toward redacting Ideally, passwords and secrets would be in |
Yikes, I didn't realize those brackets would be percent-escaped. I think we need to fix |
So, thinking about this some more:
|
Change https://golang.org/cl/223757 mentions this issue: |
Updates #37873 Change-Id: I2228f31fc7bd7daef086cd05d365fa7c68e60a83 Reviewed-on: https://go-review.googlesource.com/c/go/+/223757 Reviewed-by: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Updates golang#37873 Change-Id: I2228f31fc7bd7daef086cd05d365fa7c68e60a83 Reviewed-on: https://go-review.googlesource.com/c/go/+/223757 Reviewed-by: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
When a user submits an issue, we also need the user to file the output of
go env
(many users don't use go bug command), so we should replace any non-empty password in GOPROXY environment by default. The string form replaces password in the original URL with "[redacted]". Likego get -x
:We should only change the
go env
andgo bug
command, we can get the original config fromgo env GOPROXY
andgo env -json
at this time, since some tools today expect to parsego env GOPROXY
and use-json
option.The text was updated successfully, but these errors were encountered: