logoalt Hacker News

JetSetIllylast Thursday at 9:41 AM2 repliesview on HN

By default, all go mod downloads go through the golang proxy (https://proxy.golang.org/). That is part of the verification process.


Replies

wereHamsterlast Thursday at 1:02 PM

Let's assume I publish a github repo with some go code, and tag a particular commit with tag v1.0.0. People start using it and put v1.0.0 into their go.mod file. They use the golang proxy to fetch the code (and that proxy does the "verification", according to your comment). Now I delete the v1.0.0 tag and re-create the tag to point to different (malicious) commit. Will the golang proxy notice? How does it verify that the people that expect the former commit under the v1.0.0 tag will actually get that and not the other (malicious) commit?

show 1 reply
zelphirkaltlast Thursday at 10:27 AM

Does this mean, that when you change the proxy, you lose all guarantees?

show 1 reply