verifier

package module
v0.0.0-...-485a1be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 29 Imported by: 7

README

Work in progress policy helpers for Moby & BuildKit.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactVerifyOpt

type ArtifactVerifyOpt func(*ArtifactVerifyOpts)

func WithSLSANotRequired

func WithSLSANotRequired() ArtifactVerifyOpt

func WithTlogThreshold

func WithTlogThreshold(threshold int) ArtifactVerifyOpt

WithTlogThreshold sets the minimum number of verified transparency logs. By default, all distinct logs in the bundle are required. Explicit zero skips log verification and returns no log timestamps, so a TSA timestamp is required.

type ArtifactVerifyOpts

type ArtifactVerifyOpts struct {
	SLSANotRequired bool
	TlogThreshold   *int
}

type Config

type Config struct {
	UpdateInterval time.Duration
	RequireOnline  bool
	StateDir       string
}

type NoSigChainError

type NoSigChainError struct {
	Target         digest.Digest
	HasAttestation bool
}

func (*NoSigChainError) Error

func (e *NoSigChainError) Error() string

type Verifier

type Verifier struct {
	// contains filtered or unexported fields
}

func NewVerifier

func NewVerifier(cfg Config) (*Verifier, error)

func (*Verifier) VerifyArtifact

func (v *Verifier) VerifyArtifact(ctx context.Context, dgst digest.Digest, bundleBytes []byte, opt ...ArtifactVerifyOpt) (*types.SignatureInfo, error)

func (*Verifier) VerifyImage

func (v *Verifier) VerifyImage(ctx context.Context, provider image.ReferrersProvider, desc ocispecs.Descriptor, platform *ocispecs.Platform) (*types.SignatureInfo, error)

Directories

Path Synopsis
cmd
policy-helper command
dhi

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL