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

Feature Request: Make kwctl inspect show pubkey/(issuer, subject), annotations of signatures #203

Open
viccuad opened this issue Apr 20, 2022 · 0 comments

Comments

@viccuad
Copy link
Member

viccuad commented Apr 20, 2022

Is your feature request related to a problem?

Right now, kwctl inspect only shows the full payloads, without unwrapping the payloads to see the signature information. Hence, one only gets info on "there's a signature", but not what it entails.

Solution you'd like

Instead, have kwctl inspect print the list of signatures as: timestamp of signature, pubkey or (issuer, subject), annotations.

Have kwctl inspect open the signature body (analogous to crane manifest $COSIGN_IMAGE | \ jq '.layers[0].annotations."dev.sigstore.cosign/bundle" | fromjson | .Payload.body | @base64d | fromjson'). Then, extract the pub key or (issuer, subject), and annotations associated with that specific signature.

This should be possible using sigstore-rs functions.

See also https://github.com/sigstore/sigstore-rs/wiki/Key-based-signing-using-cosign-and-Rekor#the-signature-object.

Alternatives you've considered

No response

Anything else?

No response

viccuad pushed a commit to viccuad/kwctl that referenced this issue Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants