Skip to content

Conversation

@joejstuart
Copy link
Contributor

@joejstuart joejstuart commented Jun 24, 2025

Introduce VSA signing, which signs a Verification Summary Attestation (VSA) JSON file using a cosign-compatible private key. This builds on top of the VSA generation.

https://issues.redhat.com/browse/EC-1308

@joejstuart joejstuart force-pushed the EC-1308 branch 3 times, most recently from a168a42 to 6278623 Compare June 24, 2025 20:02
Introduce the SignVSA function, which signs a Verification Summary Attestation (VSA)
JSON file using a cosign-compatible private key. The function writes a detached,
base64-encoded signature alongside the VSA and returns the absolute path to the
signature file. It handles key loading, passphrase support, payload reading,
signing, and signature persistence with robust error handling.

Add unit tests for SignVSA, covering:
- Successful signing with a valid cosign private key
- Error handling for missing key files
- Error handling for missing VSA files

https://issues.redhat.com/browse/EC-1308
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