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

verifier: update verifier version to v1.3.2 #1184

Merged
merged 1 commit into from
Nov 1, 2022

Conversation

asraa
Copy link
Collaborator

@asraa asraa commented Oct 31, 2022

Signed-off-by: Asra Ali asraa@google.com

Pending slsa-framework/slsa-verifier#347

To verify, see that PR:

  1. Download the binary and provenance from https://github.com/slsa-framework/slsa-verifier/releases/tag/v1.3.2 (or the other)
  2. Clone the slsa-verifier repo, compile and verify the provenance:
$ git clone git@github.com:slsa-framework/slsa-verifier.git
$ cd slsa-verifier
$  go run ./cli/slsa-verifier verify-artifact ~/Downloads/slsa-verifier-linux-amd64 --provenance-path ~/Downloads/slsa-verifier-linux-amd64.intoto.jsonl --source-uri github.com/slsa-framework/slsa-verifier --source-tag v1.3.2 --source-branch release/v1.3
  1. Get the hash.
    Either:
cat slsa-verifier-linux-amd64.intoto.jsonl | jq -r '.payload' | base64 -d | jq -r '.subject[0].digest.sha256'

or

sha256sum slsa-verifier-linux-amd64

Signed-off-by: Asra Ali <asraa@google.com>
@ianlewis
Copy link
Member

ianlewis commented Nov 1, 2022

Verified the binary that I downloaded to ~/bin/slsa-verifier

ianlewis@ianlewis at 00:22:39+0000 git:(main $%>) (default)
slsa-verifier$ go run ./cli/slsa-verifier verify-artifact ~/bin/slsa-verifier --provenance-path ~/bin/slsa-verifier-linux-amd64.intoto.jsonl --source-uri github.com/slsa-framework/slsa-verifier --source-tag v1.3.2 --source-branch release/v1.3
go: downloading github.com/spf13/cobra v1.6.1
Verified signature against tlog entry index 6245441 at URL: https://rekor.sigstore.dev/api/v1/log/entries/24296fb24b8ad77a6aff24603330a8a53da672f2fbdb0b42bcd8964b0120c271b631bd97fb7f2332
Verified build using builder https://github.com/slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@refs/tags/v1.2.1 at commit 0ff665615b2021bbd64762265846bace606e0904
PASSED: Verified SLSA provenance

ianlewis@ianlewis at 00:24:02+0000 git:(main $%>) (default)
slsa-verifier$ sha256sum ~/bin/slsa-verifier
b1d6c9bbce6274e253f0be33158cacd7fb894c5ebd643f14a911bfe55574f4c0  /usr/local/google/home/ianlewis/bin/slsa-verifier

Copy link
Member

@ianlewis ianlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified the sha256sum is the same. LGTM

@ianlewis
Copy link
Member

ianlewis commented Nov 1, 2022

slsa-framework/slsa-verifier#347 is merged so merging this too.

@ianlewis ianlewis merged commit 67e7b12 into slsa-framework:main Nov 1, 2022
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

Successfully merging this pull request may close these issues.

2 participants