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

Upgrade dependency 'gorilla/websocket' to avoid checksum mismatch. #2360

Open
HappyHacker123 opened this issue Aug 27, 2024 · 0 comments
Open

Comments

@HappyHacker123
Copy link

HappyHacker123 commented Aug 27, 2024

Problem description

Currently ziti@v1.1.5 depends on gorilla/websocket@v1.5.2. But as shown in #websocket-927, websocket may have retagged version v1.5.2, so the checksum from the code in github does not match the checksum saved in sum.golang.org.
Consequently, when trying to download websocket directly, the following error will occur.

root@iZj6c5flh0q5ax3d1ttfuhZ:~/temp# GOPROXY=direct go get github.com/gorilla/websocket@v1.5.2
go: downloading github.com/gorilla/websocket v1.5.2
verifying github.com/gorilla/websocket@v1.5.2: checksum mismatch
        downloaded: h1:IhsoD2hZmkRRR2jvKyztbbsF4KtoCfNkrlaPsqN31MQ=
        go.sum:     h1:qoW6V1GT3aZxybsbC6oLnailWnB+qTMVwMreOso9XUw=

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'.

Possible solution

Upgrade websocket to v1.5.3

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