cmd/pprof: use netrc for user/password authentication #39187
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FeatureRequest
Issues asking for a new feature that does not need a proposal.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Use
go tool pprof
to fetch a profile from an internal site that is protected behind auth. Authentication information is written to~/.netrc
andcurl -n <url>
works fine. Since Go supports netrc for getting modules, it would be great if pprof could similarly support netrc files.What did you expect to see?
go tool pprof to use authentication information from
~/.netrc
.What did you see instead?
401, as the user/information is not used.
The text was updated successfully, but these errors were encountered: