Documentation
¶
Overview ¶
Package sigtest is a miniature Sigstore for tests and demos: a Fulcio-like CA that issues short-lived code-signing certificates carrying the OIDC identity extensions, a Rekor-like key that signs entry timestamps, and an in-memory OCI registry that serves images and their cosign signature manifests. Nothing here is used at runtime.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SimpleSigningPayload ¶
SimpleSigningPayload builds the cosign payload attesting to an image digest.
Types ¶
type Registry ¶
type Registry struct {
Server *httptest.Server
Auth bool
// contains filtered or unexported fields
}
Registry is an in-memory OCI registry behind httptest with optional bearer-token auth.
type SignOptions ¶
type SignOptions struct {
Subject, Issuer string
NotBefore time.Time // leaf validity start (default: now-5m); valid 10 minutes
Integrated time.Time // Rekor time (default: NotBefore+1m)
NoBundle bool
WrongCA bool // sign the leaf with an unrelated CA
BadSET bool // corrupt the signed entry timestamp
}
SignOptions tune one signature (zero values = a good, current signature).
type Signer ¶
type Signer struct {
RootPEM []byte
ChainPEM []byte // intermediate
RekorPEM []byte
// contains filtered or unexported fields
}
Signer is the test CA + log.
func (*Signer) Sign ¶
Sign issues a fresh leaf and signs payload, returning a cosign-shaped signature.
func (*Signer) WriteTrustRoot ¶
WriteTrustRoot writes fulcio.pem and rekor.pub into dir (for `redoubt update --trust-root`).
Directories
¶
| Path | Synopsis |
|---|---|
|
demosign signs images in a local (plain-HTTP, loopback) registry with a throwaway Sigstore (sigtest) and writes the matching trust root, so `make demo-phase3` can exercise `redoubt update` end to end without GitHub OIDC.
|
demosign signs images in a local (plain-HTTP, loopback) registry with a throwaway Sigstore (sigtest) and writes the matching trust root, so `make demo-phase3` can exercise `redoubt update` end to end without GitHub OIDC. |