-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
proxy.golang.org, cmd/go: 403 Forbidden on go get #71094
Comments
Working through some error triangulation steps from other related issues: Specify a proxy directly, get 403 Forbidden
Specify direct (without a proxy) and get a different 403 Forbidden
Specify a third party proxy, don't get a 403 Forbidden
Another third party
|
can you use curl to download the zip file? |
See golang/go#71094 which I filed with the go project. It seems that just.hosting has an IP address that is likely getting geolocated incorrectly leading to being forbidden from downloading go modules from go's default proxy. This uses another proxy (which I haven't vetted in any way) instead. Does that sound like a vector for a supply chain attack to you? It does to me. Hat tip to https://discourse.nixos.org/t/git-buildgomodule-private-repositories/5167/8 for the magical incantation to get Nix to set a GOPROXY variable.
Maybe? I'm not sure how exactly to translate the |
Assuming this is valid:
I end up with
It appears to |
Looks like you got 403 not only while interacting with https://proxy.golang.org, but also when reading https://golang.org/x/arch?go-get=1 (in #71094 (comment)) and https://golang.org/x/net?go-get=1 (in the original report) in GOPROXY=direct mode. Given that the only shared part between proxy.golang.org and golang.org is the Google network (they are on different servers, and on different corners in Google), it may be an issue between Google frontend and the client. OTOH the last curl (on proxy.golang.org) succeeded, so that's strange. Does the problem persist? |
Yeah, I can repro at will with:
|
Is it possible to try the similar setup from a machine with a different IP address? |
Sure, tested from my laptop, works fine.
|
Go version
go version go1.23.4 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I'm working on NixOS, building my own flake of my own software. Ran
nix develop
which does a bunch of Nix stuff you don't care about. Within that command is ago get
. The command worked fine on my laptop, fails on a cloud VPS with a 403 Forbidden.What did you see happen?
I can reproduce the specific failure directly with
go get
:My IP addresses are:
What did you expect to see?
I expected the
mimetype
module to download and be available to build software.The text was updated successfully, but these errors were encountered: