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

Add support for new bundle specification in cosign verify-attestation #3889

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

codysoyland
Copy link
Member

@codysoyland codysoyland commented Sep 25, 2024

This PR adds support for the new Cosign Bundle Specification in cosign verify-attestation.

This works in conjunction with #3888 and is interoperable with GitHub Artifact Attestations.

Related: #3139

This is in draft for now pending:

  • TSA Support
  • Wiring in verification options from CheckOpts
  • More metadata returned in oci.Signature (currently outputs just enough to display basic verification success message)
  • Error propagation similar to that in VerifyImageAttestation
  • Tests

To test, run the following (replacing MY_IDENTITY, MY_ISSUER, MY_TRUSTED_ROOT and MY_IMAGE as needed):

go run ./cmd/cosign verify-attestation --certificate-identity MY_IDENTITY --certificate-oidc-issuer MY_ISSUER --expect-sigstore-bundle=true --trusted-root=MY_TRUSTED_ROOT MY_IMAGE

Summary

Release Note

Documentation

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.

1 participant