-
Notifications
You must be signed in to change notification settings - Fork 1.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
v5.0.1 and v5.0.2 tarballs sha256 changed? #5174
Comments
Edit: Sorry, I was confused when I wrote this comment. Please ignore this; I've updated my original post to clarify. When I opened this issue, I checked your release tarball's sha256. It matched the one listed in my original post:
Now, if I try to download it again, it reports the following sha256:
|
@carlocab I gave it a try and the checksums matched for 5.0.1 and 5.0.2 respectively ~ $ shasum -a 256 teleport-5.0.1.tar.gz
2b3bece3c38e8425c41045fd4e6c7dee285dfb8220d1d147a86c684375f69cf8 teleport-5.0.1.tar.gz
~ $ shasum -a 256 teleport-5.0.2.tar.gz
430f02c4ec20ae7cd77ae3c263225fd6e4692a000eaeae7c81114c50595dec25 teleport-5.0.2.tar.gz |
Hmm, yes, I see. Sorry, my original post was about the v5.0.1 tarball. My second comment was mistaken, as I was looking at v5.0.2. However, when Homebrew updated teleport to 5.0.1 (Homebrew/homebrew-core@356ddcc#diff-5c6f19f4acfd46cdd135dc6abd85a833178756485b9c119bcc1d8bf49ba9ce05), the sha256 was recorded as
Now it is reporting something else. |
Actually, your v5.0.2 tarball also had its sha256 changed. Yesterday, it was updated at Homebrew (Homebrew/homebrew-core@2178f0f#diff-5c6f19f4acfd46cdd135dc6abd85a833178756485b9c119bcc1d8bf49ba9ce05) and reported a sha256 of
Now it is something else. |
@klizhentas I updated my original post, as the way I had written it was confusing. (I was also confused myself then, so that might explain it.) Thanks again for looking into it. |
Upstream issue filed: gravitational/teleport#5174
I wonder if it's a case of this problem |
It may well be, but Homebrew downloads thousands of tarballs from GitHub and doesn't encounter that problem too often. For example, Homebrew CI will have downloaded over 500 tarballs, most of them from GitHub, in this run: https://github.com/Homebrew/homebrew-core/pull/66355/checks?check_run_id=1575924257 Only The most common explanation is that those releases were re-tagged, which changes their sha256. See, for example, alexei-led/pumba#190, Aloxaf/silicon#141, Findomain/Findomain#121, cmyr/cargo-instruments#27 |
Looking into it some more, I don't think it's an instance of that problem. Whenever it happens, lots of tarballs have their sha256s change. In this case it was only yours. |
@carlocab I will check with the team and let you know |
I have also created support request for Github to pull any audit data related to the hash change |
@carlocab Any chance the old tarball is still available? We can compare the archives to see what changed. |
Homebrew doesn't store the tarballs, unfortunately. We only keep a record of the sha256. |
If @chenrui333 didn't run |
We checked the logs of our CI/CD system and did not find any changes to the tags after the original release. We are waiting for additional information from Github. |
While doing some digging, we have noticed the strange difference between source code in git vs Github generated tarball: $ diff -r teleport-5.0.2 teleport
diff -r teleport-5.0.2/vendor/k8s.io/client-go/pkg/version/base.go teleport/vendor/k8s.io/client-go/pkg/version/base.go
58,59c58,59
< gitVersion string = "v0.0.0-master+17679dcec2"
< gitCommit string = "17679dcec24796955b96485d5922b6d695735a3b" // sha1 from git, output of $(git rev-parse HEAD)
---
> gitVersion string = "v0.0.0-master+$Format:%h$"
> gitCommit string = "$Format:%H$" // sha1 from git, output of $(git rev-parse HEAD) Here is a guess from one of our engineers, @webvictim:
|
Those PRs are managed by action runner and I dont have cached artifacts in my local :( |
To expand on this a little: https://github.com/gravitational/teleport/blob/master/vendor/k8s.io/client-go/pkg/version/base.go#L55-L59 shows that the tag formats are processed and expanded when |
To expand on this a little: https://github.com/gravitational/teleport/blob/master/vendor/k8s.io/client-go/pkg/version/base.go#L55-L59 shows that the tag formats are processed and expanded when My guess is that |
Summary
The checksum of the v5.0.2 and v5.0.1 release tarballs changed.
Relevant information
We're attempting to update Homebrew's version of Go here: Homebrew/homebrew-core#66355.
While testing the new version, CI produced the following error:
This shows a change in the sha256 of the v5.0.1 tarball. Similarly, when Homebrew updated teleport to v5.0.2, the sha256 was reported as
Now it is
I can update the sha256 associated with the formula, but CI will come back to me with the following error:
Can I confirm that nothing is amiss here?
Environment (if relevant)
N/A
The text was updated successfully, but these errors were encountered: