-
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
cmd/go: should GOINSECURE imply GONOSUMDB? #38108
Comments
@FiloSottile, do you have any insight on this? |
I'm inclined to say that Here's my reasoning: if you are blocked from an HTTPS connection to the origin, but the sumdb server is able to fetch from the origin via HTTPS, then the origin can serve a plain-HTTP response to you and you can combine that with the checksum from the database to obtain a trustworthy copy of the module, even if that module is not available from any proxy that you can reach. (Recall that a proxy can provide access to signed |
Or, to put it another way: the difference between Since you can also set |
The checksum database is more, not less, important for |
Thanks. I opened the issue because I found the behavior between I'm not sure if the difference between |
Thanks for checking. I added a note on that issue. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
It also reproduces with the current
gotip
.What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
The documentation in https://golang.org/pkg/cmd/go/#hdr-Module_authentication_failures says
However when
GOINSECURE
is set for a module,GOSUMDB
is consulted for that module.If #37519 is implemented, then
GOINSECURE
will have a different semantic compared to the-insecure
flag.Thanks.
The text was updated successfully, but these errors were encountered: