Documentation
¶
Overview ¶
Package attest verifies Sigstore bundles for pinned artifact digests.
Index ¶
Constants ¶
View Source
const ( // BundleMediaTypePrefix matches modern Sigstore bundle artifact media types, // including version parameters and versioned subtype spellings. BundleMediaTypePrefix = "application/vnd.dev.sigstore.bundle" // DefaultIssuer is GitHub Actions' OIDC token issuer. DefaultIssuer = "https://token.actions.githubusercontent.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Verifier)
Option configures a Verifier.
func WithTrustedMaterial ¶
func WithTrustedMaterial(material root.TrustedMaterial) Option
WithTrustedMaterial supplies trusted Sigstore material. A nil value keeps the lazily fetched public-good trust root.
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
Verifier verifies Sigstore bundles against a trusted root. The public-good root is fetched lazily so markers that do not opt in cause no TUF traffic.
func (*Verifier) Verify ¶
func (v *Verifier) Verify( ctx context.Context, bundles [][]byte, digest, identity, issuer string, ) (bool, error)
Verify reports whether any bundle cryptographically verifies for digest and matches the certificate identity policy. Malformed and nonmatching bundles are skipped; trust-root setup failures are returned as infrastructure errors.
Click to show internal directories.
Click to hide internal directories.