spec

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package spec defines the mirror store's on-disk contract: the repo-root mirror.yaml (global defaults), the per-entry manifest.yaml files (intent), the lock files (facts), the generated images.extra.yaml sidecar, and the CVE allowlists. The tree itself is the registry of entries — discovery globs charts/*/manifest.yaml and artifacts/*/manifest.yaml; mirror.yaml never lists them.

Manifests decode strictly (unknown fields are errors), so a typo'd key fails loudly instead of silently reverting to a default. Lock files are written through a fixed-shape emitter rather than a generic YAML encoder, keeping the bytes stable across regenerations — the validate gate byte-compares them.

Index

Constants

View Source
const (
	KindMirrorConfig = "MirrorConfig"
	KindChart        = "Chart"
	KindArtifact     = "Artifact"
)

The kinds the schema defines.

View Source
const APIVersion = "mirror.patchy.bitwisemedia.uk/v1alpha1"

APIVersion is the schema identity every mirror file declares.

View Source
const AllowlistFile = "security/allowlist.yaml"

AllowlistFile is an entry's allowlist path relative to its directory.

View Source
const ConfigFile = "mirror.yaml"

ConfigFile is the name of the root configuration file; its directory is the mirror root.

View Source
const SidecarFile = "images.extra.yaml"

SidecarFile is the generated extra-images sidecar, relative to an entry directory. Machine-derived extras (distribution manifests) land here and are merged during discovery, so manifest.yaml stays a pure intent file that no machine ever rewrites.

Variables

View Source
var ErrNoRoot = errors.New("no " + ConfigFile + " found")

ErrNoRoot reports that no mirror.yaml exists in the directory or any parent — the one FindRoot failure "scaffold a fresh store" may answer.

Functions

func FindRoot

func FindRoot(dir string) (string, error)

FindRoot walks up from dir to the directory holding mirror.yaml.

Types

type Allowlist

type Allowlist struct {
	Vulnerabilities []AllowlistEntry `yaml:"vulnerabilities"`
}

Allowlist is an entry's security/allowlist.yaml: accepted scan findings, each with a statement and a lint-enforced expiry.

func LoadAllowlist

func LoadAllowlist(entryDir string) (*Allowlist, error)

LoadAllowlist reads an entry's allowlist. A missing file is an empty allowlist, not an error.

type AllowlistEntry

type AllowlistEntry struct {
	// ID is the finding identifier (CVE, GHSA, GO-...); matching also
	// covers the finding's aliases, so an entry keeps working across
	// scanners reporting under different id families.
	ID string `yaml:"id"`
	// Statement records the machine facts: package, installed version,
	// fixed-in version.
	Statement string `yaml:"statement"`
	// ExpiredAt (YYYY-MM-DD) forces re-review; entries never outlive it.
	ExpiredAt string `yaml:"expired_at"`
	// Notes preserves human analysis (reachability, exposure) verbatim
	// across regenerations.
	Notes string `yaml:"notes,omitempty"`
}

AllowlistEntry accepts one finding until it expires.

type AllowlistPolicy

type AllowlistPolicy struct {
	// Generate regenerates security/allowlist.yaml from the scan during
	// upgrade; the PR review is where the risk is actually accepted.
	Generate bool `yaml:"generate"`
	// Preamble is whole-file context rendered as comments atop the
	// generated allowlist.
	Preamble string `yaml:"preamble"`
}

AllowlistPolicy opts an entry into allowlist derivation.

type ArtifactLock

type ArtifactLock struct {
	Artifact LockArtifact `yaml:"artifact"`
}

ArtifactLock is an artifact entry's lock.yaml.

func LoadArtifactLock

func LoadArtifactLock(path string) (*ArtifactLock, error)

LoadArtifactLock reads an artifact lock file.

func (*ArtifactLock) Encode

func (l *ArtifactLock) Encode() []byte

Encode renders the lock in its canonical byte form.

type ArtifactManifest

type ArtifactManifest struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	// Name must match the entry's directory name.
	Name     string       `yaml:"name"`
	Artifact ArtifactSpec `yaml:"artifact"`
	Scan     ArtifactScan `yaml:"scan"`
	// Signing, when set, replaces the global signing block wholesale.
	Signing *Signing        `yaml:"signing"`
	Publish ArtifactPublish `yaml:"publish"`
}

ArtifactManifest is an artifacts/<name>/manifest.yaml: one mirrored OCI artifact that is not a helm chart (a manifests bundle, a policy bundle, a standalone image).

func LoadArtifactManifest

func LoadArtifactManifest(path string) (*ArtifactManifest, error)

LoadArtifactManifest reads and validates an artifact manifest.

type ArtifactPublish

type ArtifactPublish struct {
	// Repo is the repository path under the registry URL (default
	// <artifactNamespace>/<canonical source path>).
	Repo string `yaml:"repo"`
}

ArtifactPublish names the publish destination.

type ArtifactScan

type ArtifactScan struct {
	// Enabled is auto (scan iff the artifact is a runnable image), true
	// or false.
	Enabled string `yaml:"enabled"`
}

ArtifactScan opts the artifact into image scanning.

func (ArtifactScan) EffectiveEnabled

func (s ArtifactScan) EffectiveEnabled() string

EffectiveEnabled resolves the enabled default (auto).

type ArtifactSpec

type ArtifactSpec struct {
	// Ref is the upstream repository (no tag): e.g. ghcr.io/acme/bundles.
	Ref string `yaml:"ref"`
	// Version is the pinned tag; upgrade splices it.
	Version string `yaml:"version"`
	// VersionConstraint bounds what upgrade may pick.
	VersionConstraint string `yaml:"versionConstraint"`
	// CooldownDays applies the tracked-tag soak to version picks
	// (default: the global cooldown).
	CooldownDays *int `yaml:"cooldownDays"`
	// Lockstep names an update group, as for charts.
	Lockstep string `yaml:"lockstep"`
	// VerifyUpstream declares the artifact's upstream provenance.
	VerifyUpstream VerifyRule `yaml:"verifyUpstream"`
}

ArtifactSpec pins the upstream artifact.

type ChartManifest

type ChartManifest struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	// Name must match the entry's directory name.
	Name      string        `yaml:"name"`
	Chart     ChartSpec     `yaml:"chart"`
	Discovery Discovery     `yaml:"discovery"`
	Images    Images        `yaml:"images"`
	OCIRefs   OCIRefs       `yaml:"ociRefs"`
	Scan      *ScanOverride `yaml:"scan"`
	// Signing, when set, replaces the global signing block wholesale.
	Signing *Signing     `yaml:"signing"`
	Publish ChartPublish `yaml:"publish"`
}

ChartManifest is a charts/<name>/manifest.yaml: the reviewed intent for one mirrored helm chart. Everything derived from it (the vendored tree, the rendered manifests, the images lock) is fact, regenerated by machine.

func LoadChartManifest

func LoadChartManifest(path string) (*ChartManifest, error)

LoadChartManifest reads and validates a chart manifest.

type ChartPublish

type ChartPublish struct {
	// ChartRepo is the repository path under the registry URL (default
	// <chartNamespace>/<name>).
	ChartRepo string `yaml:"chartRepo"`
}

ChartPublish names the publish destination.

type ChartSpec

type ChartSpec struct {
	// Repo is the upstream chart location: an oci:// registry path or an
	// https:// helm repository (index.yaml).
	Repo string `yaml:"repo"`
	Name string `yaml:"name"`
	// Lockstep names an update group: entries sharing a lockstep value
	// ride one upstream version stream and must bump together in one PR
	// (a half-merged pair publishes an operator referencing images the
	// mirror doesn't carry yet). The group target is the LOWEST of the
	// members' newest satisfying versions, holding the bump until every
	// member carries the tag.
	Lockstep string `yaml:"lockstep"`
	// Version is the pinned upstream version; upgrade splices it.
	Version string `yaml:"version"`
	// VersionConstraint bounds what upgrade may pick (default: none).
	VersionConstraint string `yaml:"versionConstraint"`
	// VerifyUpstream declares the chart's upstream provenance
	// (provider none documents a gap).
	VerifyUpstream VerifyRule `yaml:"verifyUpstream"`
}

ChartSpec pins the upstream chart.

type Config

type Config struct {
	APIVersion string   `yaml:"apiVersion"`
	Kind       string   `yaml:"kind"`
	Registry   Registry `yaml:"registry"`
	Signing    Signing  `yaml:"signing"`
	Update     Update   `yaml:"update"`
	Scan       Scan     `yaml:"scan"`
	// SourceRegistryRewrites reroutes pulls from an upstream registry host
	// (e.g. a pull-through cache in front of docker.io). Recorded sources
	// and publish targets keep the canonical path.
	SourceRegistryRewrites map[string]string `yaml:"sourceRegistryRewrites"`
}

Config is mirror.yaml: pipeline-wide defaults. Per-entry intent lives in each entry's manifest.yaml, never here.

func LoadConfig

func LoadConfig(path string) (*Config, error)

LoadConfig reads and validates the mirror.yaml at path.

type Discovery

type Discovery struct {
	// Namespace to render into (default: the entry name).
	Namespace string `yaml:"namespace"`
	// ValuesFiles are paths relative to the entry directory.
	ValuesFiles []string `yaml:"valuesFiles"`
	// KubeVersion is the Kubernetes version to render for (default 1.34.0).
	KubeVersion string `yaml:"kubeVersion"`
	// APIVersions are extra .Capabilities.APIVersions entries.
	APIVersions []string `yaml:"apiVersions"`
}

Discovery configures the render that image discovery runs against.

func (Discovery) EffectiveKubeVersion

func (d Discovery) EffectiveKubeVersion() string

EffectiveKubeVersion resolves the kube-version default.

func (Discovery) EffectiveNamespace

func (d Discovery) EffectiveNamespace(entryName string) string

EffectiveNamespace resolves the namespace default (the entry name).

type DistributionManifests

type DistributionManifests struct {
	// Artifact is the manifests artifact ref; {appVersion} expands from
	// the vendored Chart.yaml.
	Artifact string `yaml:"artifact"`
	// Components name the manifest files whose Deployment images are
	// derived.
	Components []string `yaml:"components"`
	// Registry prefixes registry-less image references found in the
	// manifests (default ghcr.io) — the deploying operator prefixes its
	// configured registry the same way.
	Registry string `yaml:"registry"`
}

DistributionManifests configures sidecar derivation for charts whose workload images are deployed by an operator from manifests helm never renders (so discovery cannot see them).

type Entry

type Entry struct {
	// Name is the entry's directory name, its identity everywhere.
	Name string
	// Kind is KindChart or KindArtifact.
	Kind string
	// Dir is the absolute path of the entry directory.
	Dir      string
	Chart    *ChartManifest
	Artifact *ArtifactManifest
}

Entry is one discovered mirror entry: a chart or an artifact. Exactly one of Chart and Artifact is set, matching Kind.

func Discover

func Discover(root string) ([]Entry, error)

Discover globs charts/*/manifest.yaml and artifacts/*/manifest.yaml under root and loads every entry, sorted by name. The tree is the registry: nothing else lists entries.

func LoadEntry

func LoadEntry(root, name string) (Entry, error)

LoadEntry loads one entry by name, wherever it lives.

func (Entry) LockPath

func (e Entry) LockPath() string

LockPath is the entry's lock file path: images.lock.yaml for charts, lock.yaml for artifacts.

func (Entry) Lockstep

func (e Entry) Lockstep() string

Lockstep returns the entry's update group, empty when it rides alone.

func (Entry) ManifestPath

func (e Entry) ManifestPath() string

ManifestPath is the entry's manifest.yaml path.

func (Entry) Signing

func (e Entry) Signing() *Signing

Signing returns the entry's signing override, nil when it uses the global default.

func (Entry) Version

func (e Entry) Version() string

Version returns the entry's pinned upstream version.

func (Entry) VersionConstraint

func (e Entry) VersionConstraint() string

VersionConstraint returns the entry's update constraint.

type ExcludePattern

type ExcludePattern struct {
	Pattern string `yaml:"pattern"`
}

ExcludePattern drops discovered references matching a glob.

type ExtraImage

type ExtraImage struct {
	Image  string `yaml:"image"`
	Reason string `yaml:"reason"`
}

ExtraImage adds one image with the reason it is invisible to discovery.

type ImageVerifyRule

type ImageVerifyRule struct {
	// Match is a glob over canonical source references.
	Match      string `yaml:"match"`
	VerifyRule `yaml:",inline"`
}

ImageVerifyRule is a VerifyRule scoped to images matching a glob.

type Images

type Images struct {
	// Track re-picks tags for images on a release train of their own,
	// writing the pick into a values file. Wall-clock dependent: only
	// upgrade re-picks; every other stage uses the committed pin.
	Track []Track `yaml:"track"`
	// DistributionManifests derives extra images from a distribution
	// manifests artifact into the generated images.extra.yaml sidecar.
	DistributionManifests *DistributionManifests `yaml:"distributionManifests"`
	// Extra adds images helm rendering cannot see. {appVersion} expands
	// from the vendored Chart.yaml.
	Extra []ExtraImage `yaml:"extra"`
	// Exclude drops discovered references matching a glob pattern.
	Exclude []ExcludePattern `yaml:"exclude"`
	// AllowEmpty accepts a chart that renders no images (CRD-only charts).
	AllowEmpty bool `yaml:"allowEmpty"`
	// VerifyUpstream rules gate every locked image: first match wins, and
	// every image must match one (provider none documents a gap).
	VerifyUpstream []ImageVerifyRule `yaml:"verifyUpstream"`
}

Images configures image discovery, tracking and upstream verification.

type ImagesLock

type ImagesLock struct {
	Chart  LockChart   `yaml:"chart"`
	Images []LockImage `yaml:"images"`
}

ImagesLock is a chart entry's images.lock.yaml: the pinned facts derived from the manifest — the upstream tgz digest and every referenced image resolved to a digest. Regenerated by machine; validate byte-compares it.

func LoadImagesLock

func LoadImagesLock(path string) (*ImagesLock, error)

LoadImagesLock reads a chart lock file.

func (*ImagesLock) Encode

func (l *ImagesLock) Encode() []byte

Encode renders the lock in its canonical byte form. The shape is fixed, so the emitter is hand-rolled: a generic YAML encoder would not reproduce the committed files byte-for-byte, and the validate gate compares bytes.

type KMSSigning

type KMSSigning struct {
	// Key is a KMS URI: gcpkms://, awskms:// or azurekms://.
	Key string `yaml:"key"`
}

KMSSigning signs with a cloud KMS key.

type KeylessSigning

type KeylessSigning struct {
	CertificateIdentity   string `yaml:"certificateIdentity"`
	CertificateOidcIssuer string `yaml:"certificateOidcIssuer"`
	// TlogUpload records signatures in the public transparency log
	// (default true; public repos want the log).
	TlogUpload *bool `yaml:"tlogUpload"`
}

KeylessSigning pins the certificate identity the mirror's own signatures carry — used both to sign and to self-verify for publish idempotency.

func (*KeylessSigning) TlogUploadEnabled

func (k *KeylessSigning) TlogUploadEnabled() bool

TlogUploadEnabled resolves the TlogUpload default.

type KubescapeScanner

type KubescapeScanner struct {
	Enabled bool `yaml:"enabled"`
	// Mode is "warn" (findings inform review) or "fail" (findings block).
	Mode string `yaml:"mode"`
}

KubescapeScanner configures the configuration scan.

type LockArtifact

type LockArtifact struct {
	// Ref is the canonical upstream repository (no tag).
	Ref string `yaml:"ref"`
	// Version is the pinned tag.
	Version string `yaml:"version"`
	// Digest is the manifest digest Ref:Version resolved to.
	Digest string `yaml:"digest"`
	// Target is the mirror reference the artifact publishes to.
	Target string `yaml:"target"`
	// Platforms lists os/arch pairs of a manifest list.
	Platforms []string `yaml:"platforms"`
}

LockArtifact pins one mirrored OCI artifact by digest.

type LockChart

type LockChart struct {
	Name              string `yaml:"name"`
	Version           string `yaml:"version"`
	UpstreamTgzSha256 string `yaml:"upstreamTgzSha256"`
}

LockChart records the vendored chart identity and its upstream tgz digest (the publish-time mutation tripwire).

type LockImage

type LockImage struct {
	// Source is the canonical upstream reference (normalized, tagged).
	Source string `yaml:"source"`
	// Digest is the manifest digest Source resolved to.
	Digest string `yaml:"digest"`
	// Target is the mirror reference the image publishes to.
	Target string `yaml:"target"`
	// Platforms lists os/arch pairs of a manifest list (empty for
	// single-platform images).
	Platforms []string `yaml:"platforms"`
}

LockImage is one image pinned by digest, with its mirror target.

type OCIRefAllow

type OCIRefAllow struct {
	Pattern string `yaml:"pattern"`
	Reason  string `yaml:"reason"`
}

OCIRefAllow permits one non-mirror oci:// reference pattern, with the reason it may bypass the mirror.

type OCIRefs

type OCIRefs struct {
	Allow []OCIRefAllow `yaml:"allow"`
}

OCIRefs governs oci:// references surviving in rendered output: anything outside the mirror bypasses the review gate and needs a reasoned allowance.

type Registry

type Registry struct {
	URL string `yaml:"url"`
	// ChartNamespace prefixes published charts (default "charts").
	ChartNamespace string `yaml:"chartNamespace"`
	// ImageNamespace prefixes mirrored images by their canonical source
	// path (default "images"): <url>/<imageNamespace>/<source path>:<tag>.
	ImageNamespace string `yaml:"imageNamespace"`
	// ArtifactNamespace prefixes mirrored OCI artifacts (default "artifacts").
	ArtifactNamespace string `yaml:"artifactNamespace"`
}

Registry locates the mirror: one registry URL with path namespaces for charts, images and artifacts beneath it.

type Scan

type Scan struct {
	Scanners Scanners `yaml:"scanners"`
	// FailOn lists blocking severities (default CRITICAL, HIGH).
	FailOn []string `yaml:"failOn"`
	// IgnoreUnfixed skips findings with no fixed version (default true).
	IgnoreUnfixed *bool `yaml:"ignoreUnfixed"`
	// AllowlistMaxDays bounds every allowlist entry's expired_at horizon
	// (default 90) — expiry forces re-review instead of accepted-forever CVEs.
	AllowlistMaxDays int `yaml:"allowlistMaxDays"`
	// AllowlistNewDays is the expiry stamped on new derived entries
	// (default 90). Surviving entries keep the date they were first
	// accepted with, so regeneration never rolls the clock forward.
	AllowlistNewDays int `yaml:"allowlistNewDays"`
}

Scan is the global vulnerability-scan policy. FailOn and IgnoreUnfixed can be overridden per entry; the scanner roster is global.

func (Scan) EffectiveAllowlistMaxDays

func (s Scan) EffectiveAllowlistMaxDays() int

EffectiveAllowlistMaxDays resolves the horizon default.

func (Scan) EffectiveAllowlistNewDays

func (s Scan) EffectiveAllowlistNewDays() int

EffectiveAllowlistNewDays resolves the new-entry default.

func (Scan) EffectiveFailOn

func (s Scan) EffectiveFailOn() []string

EffectiveFailOn resolves the FailOn default.

func (Scan) EffectiveIgnoreUnfixed

func (s Scan) EffectiveIgnoreUnfixed() bool

EffectiveIgnoreUnfixed resolves the IgnoreUnfixed default.

type ScanOverride

type ScanOverride struct {
	FailOn        []string        `yaml:"failOn"`
	IgnoreUnfixed *bool           `yaml:"ignoreUnfixed"`
	Allowlist     AllowlistPolicy `yaml:"allowlist"`
}

ScanOverride adjusts the global scan policy for one entry.

type ScanPolicy

type ScanPolicy struct {
	FailOn        []string
	IgnoreUnfixed bool
}

ScanPolicy is the resolved (entry over global) blocking policy.

func EffectiveScanPolicy

func EffectiveScanPolicy(global Scan, override *ScanOverride) ScanPolicy

EffectiveScanPolicy resolves an entry's scan override against the global scan config.

type ScannerToggle

type ScannerToggle struct {
	Enabled bool `yaml:"enabled"`
}

ScannerToggle enables or disables one scanner.

type Scanners

type Scanners struct {
	// OSV is the built-in library scanner (default enabled).
	OSV *ScannerToggle `yaml:"osv"`
	// Grype shells out to grype, which must be on PATH when enabled
	// (default disabled).
	Grype *ScannerToggle `yaml:"grype"`
	// Kubescape scans rendered manifests for misconfigurations (default
	// enabled, warn-only; skipped with a warning when the binary is absent).
	Kubescape *KubescapeScanner `yaml:"kubescape"`
}

Scanners toggles the pluggable scanners independently; none is forced.

func (Scanners) GrypeEnabled

func (s Scanners) GrypeEnabled() bool

GrypeEnabled resolves the grype default (off).

func (Scanners) KubescapeEnabled

func (s Scanners) KubescapeEnabled() bool

KubescapeEnabled resolves the kubescape default (on).

func (Scanners) KubescapeMode

func (s Scanners) KubescapeMode() string

KubescapeMode resolves the kubescape mode default ("warn").

func (Scanners) OSVEnabled

func (s Scanners) OSVEnabled() bool

OSVEnabled resolves the osv default (on).

type Sidecar

type Sidecar struct {
	Extra []ExtraImage `yaml:"extra"`
}

Sidecar is a generated images.extra.yaml.

func LoadSidecar

func LoadSidecar(entryDir string) (*Sidecar, error)

LoadSidecar reads an entry's generated sidecar. A missing file is an empty sidecar, not an error.

func (*Sidecar) Encode

func (s *Sidecar) Encode() []byte

Encode renders the sidecar in its canonical byte form, GENERATED header included.

type Signing

type Signing struct {
	// Provider is "keyless" or "kms".
	Provider string          `yaml:"provider"`
	Keyless  *KeylessSigning `yaml:"keyless"`
	KMS      *KMSSigning     `yaml:"kms"`
}

Signing configures how published OCI artifacts are signed: keyless (ambient OIDC, Fulcio certificate, transparency log) or a KMS key. The top-level block is the default; a per-entry signing block replaces it wholesale — the two are never merged field-by-field.

type Track

type Track struct {
	Image string `yaml:"image"`
	// VersionConstraint bounds the pick; empty derives the pinned tag's
	// own release train (">=<pin> <<major+1>.0.0"), so picks follow the
	// current major and never hop one on their own.
	VersionConstraint string `yaml:"versionConstraint"`
	// CooldownDays overrides the global soak for this image; 0 disables
	// the soak for an image that should track head.
	CooldownDays *int `yaml:"cooldownDays"`
	// ValuesFile defaults to the first discovery.valuesFiles entry.
	ValuesFile string `yaml:"valuesFile"`
	ValuesPath string `yaml:"valuesPath"`
}

Track is one tracked image: the tag is machine-picked into a values file, so the rule names both an image and a path that must already resolve there — the pick replaces a value, it never invents one. The value there is either a full image reference (the pick replaces image:tag) or a bare tag for charts that split image.repository from image.tag (the pick replaces just the tag).

type Update

type Update struct {
	// CooldownDays is how long a tag must have been published before a
	// tracked-image pick may adopt it (default 3): a tag published this
	// recently can still be yanked or hot-fixed, and the mirror should
	// not be what discovers that. Kept short on purpose — every day here
	// is a day the platform knowingly runs behind on security patches.
	CooldownDays *int `yaml:"cooldownDays"`
}

Update tunes the tracked-tag soak window.

func (Update) EffectiveCooldownDays

func (u Update) EffectiveCooldownDays() int

EffectiveCooldownDays resolves the default.

type VerifyRule

type VerifyRule struct {
	// Provider is none (documented gap), cosign-keyless or cosign-key.
	Provider string `yaml:"provider"`
	// CertificateIdentityRegexp is required for cosign-keyless.
	CertificateIdentityRegexp string `yaml:"certificateIdentityRegexp"`
	// CertificateOidcIssuer defaults to the GitHub Actions issuer.
	CertificateOidcIssuer string `yaml:"certificateOidcIssuer"`
	// Key is required for cosign-key: a URL or path to the public key.
	Key string `yaml:"key"`
	// SignatureDigestAlgorithm overrides the payload digest for
	// cosign-key publishers signing with a non-default one (sha512).
	SignatureDigestAlgorithm string `yaml:"signatureDigestAlgorithm"`
	// SignatureRepository is where signatures live when the publisher
	// stores them in a dedicated repository instead of alongside the
	// artifact.
	SignatureRepository string `yaml:"signatureRepository"`
}

VerifyRule declares upstream provenance for a chart, artifact or image.

func (VerifyRule) EffectiveOidcIssuer

func (r VerifyRule) EffectiveOidcIssuer() string

EffectiveOidcIssuer resolves the issuer default.

func (VerifyRule) EffectiveProvider

func (r VerifyRule) EffectiveProvider() string

EffectiveProvider resolves the provider default (none).

Jump to

Keyboard shortcuts

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