Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Add verify with rego policy#2

Draft
jonnystoten wants to merge 3 commits into
mainfrom
rego-policy
Draft

Add verify with rego policy#2
jonnystoten wants to merge 3 commits into
mainfrom
rego-policy

Conversation

@jonnystoten
Copy link
Copy Markdown
Member

Initial PoC using OPA/rego for policy when verifying

Usage:

docker verify openpubkey/demo:main --policy policy.rego

policy.rego is checked in here as an example

Copy link
Copy Markdown

@whalelines whalelines left a comment

Choose a reason for hiding this comment

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

Nice to have more logic in data.

Tests?

manifest, ai := ia.Manifest, ia.AttestationImg

envs := make([]dsse.Envelope, 0)
var rawEnvs []string
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Are these still envelopes?

}

err = verify.VerifyInTotoEnvelopes(ctx, image, attest.Digest, platform, repoOwnerID, envs, signedattestation.GithubActionsOIDC)
// err = verify.VerifyInTotoEnvelopes(ctx, image, attest.Digest, platform, repoOwnerID, envs, signedattestation.GithubActionsOIDC)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No need to retain this comment, right?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants