ec.sigstore.verify_attestation
Use sigstore to verify the attestation of an image.
Usage
result = ec.sigstore.verify_attestation(ref: string, opts: object<certificate_identity: string, certificate_identity_regexp: string, certificate_oidc_issuer: string, certificate_oidc_issuer_regexp: string, ignore_rekor: boolean, public_key: string, rekor_url: string>)
Parameters
-
ref
(string
): OCI image reference -
opts
(object<certificate_identity: string, certificate_identity_regexp: string, certificate_oidc_issuer: string, certificate_oidc_issuer_regexp: string, ignore_rekor: boolean, public_key: string, rekor_url: string>
): Sigstore verification options
Return
result
(object
): the result of the verification request
The object contains the following attributes:
-
attestations
(attestations: array<attestation: object<signatures: signatures: array<object<certificate: string, chain: array<string>, keyid: string, metadata: object[string: string], signature: string>>, statement: statement: any>>
) -
errors
(errors: array<string>
) -
success
(success: boolean
)