Outdated docs on trivy binary verification #9919
Closed
chludwig-haufe
started this conversation in
Documentation
Replies: 1 comment
-
|
Thanks for letting us know. Created #9920 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
The doc section Getting Started / Signatuire Verification / Verifying binary says: "Download the required tarball, associated signature and certificate files from the GitHub Release."
However, since release v0.68.1 (more specifically: PR #9863), the release does not contain the signature and certificate files anymore. Instead, the release includes the new cosign signature bundles.
By digging through the GitHub workflow files in the trivy repository, I eventually managed to verify a binary of the release as follows:
$ cosign verify-blob-attestation trivy_0.68.1_Linux-64bit.tar.gz --bundle trivy_0.68.1_Linux-64bit.tar.gz.sigstore.json --certificate-oidc-issuer=https://token.actions.githubusercontent.com --certificate-identity 'https://github.com/aquasecurity/trivy/.github/workflows/reusable-release.yaml@refs/tags/v0.68.1' Verified OKLink
https://trivy.dev/docs/latest/getting-started/signature-verification/#verifying-binary
Suggestions
Since trivy v0.68, the release generates sigstore v0.3 signature bundles.
Download the required tarball and the associated bundle JSON file from the GitHub Release.
Use the following command for keyless verification:
For instance, to verify
trivy_0.68.1_Linux-64bit.tar.gz:You should get the following output:
Beta Was this translation helpful? Give feedback.
All reactions