Skip to content

Conversation

@bdehamer
Copy link
Collaborator

@bdehamer bdehamer commented Dec 2, 2024

Updates the CLI for the Sigstore conformance test suite to allow verification of bundles by artifact OR artifact digest.

The most recent release of the Sigstore conformance test suite (v0.0.12) includes verification tests which supply only the digest of the signed artifact instead of supplying the artifact itself. The native nodejs crypto library does NOT support signature verification by digest (you must supply the original artifact and the digest is calculated internally).

To work-around this, I've added a custom implementation of the SignatureContent type which uses a third-party library (elliptic) to perform the signature verification by digest. This new library is integrated ONLY with the conformance CLI and is not part of the @sigstore/verify library.

@changeset-bot
Copy link

changeset-bot bot commented Dec 2, 2024

🦋 Changeset detected

Latest commit: 02e3919

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sigstore/conformance Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@bdehamer bdehamer force-pushed the bdehamer/conformance-verify-by-digest branch 3 times, most recently from 425e8b8 to 0e2cc17 Compare December 4, 2024 03:20
@bdehamer bdehamer force-pushed the bdehamer/conformance-verify-by-digest branch from 17b54ac to 02e3919 Compare December 4, 2024 18:02
@bdehamer bdehamer marked this pull request as ready for review December 4, 2024 18:08
@bdehamer bdehamer requested a review from a team as a code owner December 4, 2024 18:08
Copy link
Contributor

@ejahnGithub ejahnGithub left a comment

Choose a reason for hiding this comment

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

lgtm! glad that we have wrapper for SignedEntit.signature!

@bdehamer bdehamer merged commit cd51310 into main Dec 4, 2024
25 checks passed
@bdehamer bdehamer deleted the bdehamer/conformance-verify-by-digest branch December 4, 2024 21:58
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.

3 participants