-
Notifications
You must be signed in to change notification settings - Fork 547
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
Cosign builds aren't reproducible #1019
Comments
cc @cpanato |
i will take a look on that |
@naveensrinivasan something looks wrong with the sha256sum from the binary that you downloaded from github the checksum file in the release says that binary have a sha256 sum of I've downloaded using the same command as you and got the same shasum as in the file $ curl -L -o cosgin https://github.com/sigstore/cosign/releases/download/v1.3.0/cosign-linux-amd64
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 657 100 657 0 0 1052 0 --:--:-- --:--:-- --:--:-- 1061
100 77.6M 100 77.6M 0 0 13.1M 0 0:00:05 0:00:05 --:--:-- 19.0M
$ sha256sum cosgin
9604a5eb171748113f92a67495556007dde6f45804f0b38d3e55c3bc7e151774 cosgin
$ sha256sum ./cosgin
9604a5eb171748113f92a67495556007dde6f45804f0b38d3e55c3bc7e151774 ./cosgin also using wget $ wget https://github.com/sigstore/cosign/releases/download/v1.3.0/cosign-linux-amd64
--2021-11-10 10:43:23-- https://github.com/sigstore/cosign/releases/download/v1.3.0/cosign-linux-amd64
Resolving github.com (github.com)... 140.82.112.4
Connecting to github.com (github.com)|140.82.112.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/335952417/6e6fd0a1-aebb-4f07-8d97-e51e808f1825?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211110%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211110T094324Z&X-Amz-Expires=300&X-Amz-Signature=b26fed6a4f4ebc1895e0029434bade47890c0301cddcb21ea6faa33832a72de1&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=
335952417&response-content-disposition=attachment%3B%20filename%3Dcosign-linux-amd64&response-content-type=application%2Foctet-stream [following]
--2021-11-10 10:43:24-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/335952417/6e6fd0a1-aebb-4f07-8d97-e51e808f1825?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211110%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211110T094324Z&X-Amz-Expires=300&X-Amz-Signature=b26fed6a4f4ebc1895e0029434bade47890c0301cddcb21ea6faa33832a72de1&X-Amz-SignedHeaders=host&actor_id=0&ke
y_id=0&repo_id=335952417&response-content-disposition=attachment%3B%20filename%3Dcosign-linux-amd64&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 81393043 (78M) [application/octet-stream]
Saving to: ‘cosign-linux-amd64’
cosign-linux-amd64 100%[=======================================================================================================================>] 77.62M 27.4MB/s in 2.8s
2021-11-10 10:43:29 (27.4 MB/s) - ‘cosign-linux-amd64’ saved [81393043/81393043]
$ sha256sum cosign-linux-amd64
9604a5eb171748113f92a67495556007dde6f45804f0b38d3e55c3bc7e151774 cosign-linux-amd64 |
i got a successful reproducible build using a container Dockerfile definition
build the container: in the local cosign directory you can run the docker to build the binary
the binary will be out in the host and then you can check the sha256sum
which is the same as in the https://github.com/sigstore/cosign/releases/download/v1.3.0/cosign_checksums.txt I've run 10 times the same and always got the same sha256 output |
Is it a go version issue? Are we sure we're using the same version of go in the release? |
in the release v1.3.0 the go version was 1.17.2, now we are in 1.17.3 |
i think we can close this issue |
Description
Checkout 1.3.0 and run a build
git checkout -b repro-builds v1.3.0
Download from the release
curl -L -o cosgin https://github.com/sigstore/cosign/releases/download/v1.3.0/cosign-linux-amd64
The text was updated successfully, but these errors were encountered: