Help us shape the future of Go! Take the 2026 Go Developer Survey

signing

package
v0.29.9 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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeX509 = "x509"
	TypeKMS  = "kms"
)

Variables

View Source
var AllSigners = []string{TypeX509, TypeKMS}

Functions

This section is empty.

Types

type Bundle added in v0.17.0

type Bundle struct {
	// Content is the raw content that was signed.
	Content []byte
	// Signature is the content signature.
	Signature []byte
	// Cert is an optional PEM encoded x509 certificate, if one was used for signing.
	Cert []byte
	// Chain is an optional PEM encoded x509 certificate chain, if one was used for signing.
	Chain []byte
	// RekorBundle is an optional Rekor transparency log bundle, populated when transparency is enabled.
	RekorBundle *bundle.RekorBundle
	// RekorEntry is the raw Rekor transparency log entry, populated when transparency is enabled.
	// Storage backends that build a Sigstore protobuf bundle (e.g. OCI sigstore-bundle mode) need
	// the raw entry to embed tlog data inline; the converted RekorBundle alone is insufficient.
	RekorEntry *models.LogEntryAnon
	// PublicKey is the public key from the signer.
	// Available for storage backends that need direct access to the key material
	// (e.g. to create a cosign protobuf bundle without a certificate).
	PublicKey crypto.PublicKey
}

Bundle represents the output of a signing operation.

type Signer

type Signer interface {
	signature.SignerVerifier
	Type() string
	Cert() string
	Chain() string
}

func Wrap added in v0.3.0

func Wrap(s Signer) (Signer, error)

Directories

Path Synopsis
Package kms creates a signer using a key management server
Package kms creates a signer using a key management server

Jump to

Keyboard shortcuts

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