Skip to content

Expose verified bundle metadata - #15

Merged
andrew merged 2 commits into
mainfrom
issue-14-verified-bundle-metadata
Aug 16, 2026
Merged

Expose verified bundle metadata#15
andrew merged 2 commits into
mainfrom
issue-14-verified-bundle-metadata

Conversation

@andrew

@andrew andrew commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Adds VerifyBundleDetailed alongside VerifyBundle. The result includes verified certificate identity and OIDC issuer, Rekor log identity and integrated time, in-toto subjects, predicate type, and signed statement and predicate bytes.

Metadata is returned only after verification succeeds. Signer authorization remains the caller responsibility.

Closes #14.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a new verification API that returns cryptographically verified bundle metadata (certificate identity/issuer, Rekor transparency-log details, and in-toto statement metadata) while preserving the existing VerifyBundle behavior for compatibility.

Changes:

  • Introduces VerifyBundleDetailed and result types (VerificationResult, TransparencyLog, Subject) and makes VerifyBundle delegate to the detailed method.
  • Extracts verified signer identity, Rekor log integration time, in-toto subjects/predicate type, and raw statement/predicate bytes after successful verification.
  • Adds test fixtures + unit tests and updates README usage docs for the new API.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
testdata/sigstore-js-provenance.json Adds a sample Sigstore bundle fixture used by tests.
testdata/public-good-trusted-root.json Adds a trusted root fixture used to verify the test bundle.
sigstore.go Implements VerifyBundleDetailed and constructs the returned verified metadata.
sigstore_test.go Adds tests asserting metadata is returned only on successful verification.
README.md Documents VerifyBundleDetailed and the meaning of returned fields.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread sigstore.go
Comment thread README.md Outdated
Comment thread sigstore.go
@andrew
andrew merged commit e7f9377 into main Aug 16, 2026
2 checks passed
@andrew
andrew deleted the issue-14-verified-bundle-metadata branch August 16, 2026 07:42
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.

Expose verified bundle metadata

2 participants