Open iainlane opened 4 months ago
It isn't yet possible to use cosign
to verify the attestations generated by this action.
However, this is something that we're actively working on. The incompatibility largely stems from the fact that we're using the Sigstore Bundle format for packaging the attestation, but cosign
doesn't yet have support for bundles.
There's a PR open already for adding bundle support to the verify-blob
and verify-blob-attestation
sub commands. Keep an eye out for additional PRs in the near future.
At soon as this work is complete we will definitely update our docs to show examples of using cosgin
to verify our build provenance attestations.
Cheers for the hint @bdehamer. I saw the linked PR got merged and it prompted me to have a go at this, mainly for curiosity. I didn't actually manage to make it work with cosign
, but https://github.com/sigstore/sigstore-go did work in the end 👍
A how-to was recently published in the Sigstore blog: https://blog.sigstore.dev/cosign-verify-bundles/
Based on the howto in the sigstore blog, I created a howto for container images. This is even a bit simpler and also covers the case of bit-by-bit reproducible containers (which are not quite common yet).
Thanks for this action and all the work on the whole infrastructure setup. 🙂
I'm just starting to attempt to generate SBOM and provenance attestations (this part using this action), sign my images and push them to the registry. I've been working with a test image of one of our projects:
grafana/wait-for-github:iainlane-attestation-test
(here is the latest build log).gh attestation verify
works:What I'm wondering is how to do the same using
cosign
. In the build log I can see:And indeed I can see this reference with e.g.
docker buildx imagetools inspect
. But when I try to verify or download the attestation I end up with a 404:With my naive understanding, it looks like it's not being found from the tag's manifest. Am I doing something wrong, or is this not expected to work currently?
To make this an issue rather than a question --- if this is possible to do, it'd be a nice example to have in the
README
🙂