sign

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 12 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 sign signs published OCI artifacts: keylessly (ambient OIDC — the CI workflow's identity — through Fulcio, with a public transparency log entry) or with a cloud KMS key (gcpkms://, awskms://, azurekms://). Signatures are stored as sigstore bundles attached via the OCI referrers API — never legacy .sig tags — the format policy engines' bundle rules and modern consumers verify.

The KMS URI schemes register through blank imports of the sigstore KMS providers; a signer for tests can point KeyRef at a local cosign keypair instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

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

Signer signs OCI artifacts per one resolved signing config.

func New

func New(signing *spec.Signing, keychain authn.Keychain) (*Signer, error)

New builds a signer for a resolved signing config.

func NewWithKeyFile

func NewWithKeyFile(keyPath string, password []byte, keychain authn.Keychain) *Signer

NewWithKeyFile builds a test signer over a local cosign keypair, offline (no transparency log).

func (*Signer) Sign

func (s *Signer) Sign(ctx context.Context, ref string, recursive bool) error

Sign signs ref (a digest reference), attaching the signature as a sigstore bundle via the OCI referrers API. recursive also signs a manifest list's children.

Jump to

Keyboard shortcuts

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