You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PolicyContext: add new RequireSignatureVerification method
In bootc, we want the ability to assert that signature verification is
enforced, but there are no mechanisms for this in the library.
Add a new `RequireSignatureVerification` method on the `PolicyContext`
object which would allow this.
Add a new `isSigned` method on the `PolicyRequirement` interface
which then allows `IsRunningImageAllowed` to detect if at least one
requirement performed signature verification.
Test generation was `Assisted-by: Claude Code v1.0.120`.
Part of containers/skopeo#1829.
Signed-off-by: Jonathan Lebon <[email protected]>
returnsarRejected, nil, PolicyRequirementError(fmt.Sprintf("Any signatures for image %s are rejected by policy.", transports.ImageName(image.Reference())))
0 commit comments