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

Try extracting attestations in rego #939

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

Conversation

simonbaird
Copy link
Member

Experimental DNM

info := ec.sigstore.verify_attestation(_image_ref, _sigstore_opts)

# This doesn't work for some reason.
# Todo: Fix this and add more checks here probably.
Copy link
Member

Choose a reason for hiding this comment

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

Yeah, that's the challenge with this approach. It's hard to propagate errors. You have to explicitly look for them.


atts := [a |
some att in info.attestations
a := {
Copy link
Member

Choose a reason for hiding this comment

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

Hmm if conversion is needed, I probably messed up the output of ec.sigstore.verify_attestation.

@lcarva
Copy link
Member

lcarva commented Sep 3, 2024

Close it?

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.

2 participants