Skip to content
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

v2.1.0 doesn't match what is cached in proxy.golang.org #124

Open
ianling opened this issue Dec 3, 2024 · 0 comments
Open

v2.1.0 doesn't match what is cached in proxy.golang.org #124

ianling opened this issue Dec 3, 2024 · 0 comments

Comments

@ianling
Copy link
Contributor

ianling commented Dec 3, 2024

When I get okta-jwt-verifier-golang v2.1.0 using the following commands, they have different results.

First of all, go clean -modcache to ensure we are fetching packages from the internet.

Default: (GOSUMDB and GOPROXY enabled)

> GOSUMDB=sum.golang.org GOPROXY='https://proxy.golang.org' go get github.com/okta/okta-jwt-verifier-golang/[email protected]
[works fine]

GOPROXY disabled (and remove go.sum so we don't have a checksum saved):

> rm go.sum && GOSUMDB=sum.golang.org GOPROXY=direct go get github.com/okta/okta-jwt-verifier-golang/[email protected]
go: downloading github.com/okta/okta-jwt-verifier-golang/v2 v2.1.0
verifying github.com/okta/okta-jwt-verifier-golang/[email protected]: checksum mismatch
	downloaded: h1:SnGf3apfm+7pKE3g2rh7cmr9fj1epg/8A8eyO3Ui0vU=
	sum.golang.org: h1:kxe6tAiUjp1mN5YIXtD1mlMD26scHADVFkXMrSLQJnI=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

GOPROXY and GOSUMDB disabled:

> rm go.sum && GOSUMDB=off GOPROXY=direct go get github.com/okta/okta-jwt-verifier-golang/[email protected]
[works fine]

If I vendor the two versions and diff them, this is the difference:

vendor/github.com/okta/okta-jwt-verifier-golang/v2/.goreleaser.yaml vendor_direct/github.com/okta/okta-jwt-verifier-golang/v2/.goreleaser.yaml
0a1
> version: 2
10c11
<   skip: true
---
>   disable: true

It appears that the v2.1.0 release Github Actions workflow was run several times with different commits: https://github.com/okta/okta-jwt-verifier-golang/actions

I think that pushing a new v2.1.1 release would fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant