Sub topic 3
The Sigstore ecosystem at a glance
This chapter maps the parts of Sigstore and says what each one does. Later chapters use them in detail. It assumes you can build, tag and push container images, you know what a key pair and a digital signature are, and you are comfortable in a terminal. Knowing OIDC (OpenID Connect) helps, but the chapter explains what you need.
Sigstore is a set of services
Sigstore is an open-source project, hosted by the Open Source Security Foundation, for signing and verifying software artifacts. It is not one tool. It is a group of components that each solve one problem:
- Signing needs a tool that creates and checks signatures.
- Keyless signing needs a way to bind a short-lived key to a real identity.
- Auditing needs a public record of what was signed and when.
- Verification needs a trusted way to learn the public keys of the services above.
Cosign is the part you run yourself. The other components are services that Cosign talks to, or data that Cosign checks.
The components
| Component | Role | Public instance | You interact with it |
|---|---|---|---|
| Cosign | CLI and library that signs, verifies and attaches attestations to OCI artifacts | Not applicable | Directly |
| Fulcio | Certificate authority that issues short-lived code-signing certificates for OIDC identities | `fulcio.sigstore.dev` | Through Cosign |
| Rekor | Append-only transparency log of signing events | `rekor.sigstore.dev` | Through Cosign, or the `rekor-cli` tool |
| OIDC provider | Proves who you are to Fulcio | Google, GitHub, Microsoft, or the Sigstore-run `oauth2.sigstore.dev` | In a browser or through a CI token |
| TUF root of trust | Distributes the keys and certificates Cosign uses to trust Fulcio and Rekor | Hosted by the Sigstore project | Automatically, through `cosign initialize` |
The "public instance" column is the public-good deployment. The Sigstore project runs it for open-source use. Companies can also run private instances of Fulcio and Rekor and point Cosign at them.
Cosign
Cosign is a Go program and library. It has three jobs:
- Sign an image or other OCI artifact, either with a key you hold or with a short-lived certificate from Fulcio.
- Store the signature in the same registry as the image, so no extra storage service is needed.
- Verify signatures against a public key or against a certificate identity.
Cosign also signs arbitrary claims about an image. These are called attestations, and a later chapter covers them. Cosign works with any registry that follows the OCI distribution specification, including GHCR, Docker Hub and ECR.
You can check which version you run:
cosign versionBehavior differs between Cosign major versions, for example in how signatures are stored and how the transparency log is used. Pin the Cosign version in your CI jobs and read the release notes before you upgrade.
Fulcio
Fulcio is a certificate authority (CA). A CA issues certificates that bind a public key to an identity. Fulcio differs from a web CA in two ways:
- It issues certificates for people and workloads, such as
[email protected]or a GitHub workflow. It does not issue them for domain names. - The certificates are very short-lived, valid for about 10 minutes.
The flow is as follows. Cosign creates an ephemeral key pair in memory and gets an OIDC identity token from a provider. It sends the token and the public key to Fulcio, together with a proof that it holds the private key. Fulcio checks the token and issues a certificate. The certificate contains the public key, the identity (the "subject"), and the issuer of the identity token. Cosign signs the image with the ephemeral key and then discards that key.
Because the certificate expires within minutes, there is no long-lived private key to steal or rotate. The signature stays verifiable later because it was recorded in a log while the certificate was still valid. That is Rekor's job.
Rekor
Rekor is a transparency log. It is an append-only, tamper-evident ledger built on a Merkle tree. Each entry holds a signature, the public key or certificate used, and a digest of the signed artifact. The log returns a signed receipt for each entry, called a signed entry timestamp. It also publishes signed tree heads, so any change to old entries can be detected.
Rekor does two things for you:
- It proves that a signature existed during the certificate's validity window. Without that, a verifier cannot tell a valid signature from one made after the certificate expired.
- It lets anyone audit signing activity. If someone signs an image with your identity, the entry is public, and you can monitor for entries you did not make.
Rekor does not store your image, and it does not decide whether an artifact is safe. It records only that the signing events happened.
The OIDC provider
OIDC (OpenID Connect) is an identity layer on top of OAuth 2.0. A provider authenticates a user or workload and issues a signed identity token. The token contains claims such as the email address or, for a CI job, the repository and workflow. Fulcio trusts a configured list of providers. Verifying "who signed" means checking two values from the Fulcio certificate: the identity, and the issuer that vouched for it. The identity verification chapter covers this in depth.
The TUF root of trust
Cosign must know which Fulcio CA and Rekor public key to trust. It does not hard-code them. It gets them through TUF (The Update Framework), a protocol that securely distributes and rotates trusted metadata. The first time you run Cosign, or when you run cosign initialize, it downloads the current trusted root and caches it locally.
cosign initializeThis matters when you run Cosign in an air-gapped network or against a private Sigstore deployment. In those cases you must supply your own trusted root instead of using the public one.
The wider family
Cosign is the best-known client, but the same services serve other tools:
- Gitsign signs Git commits with keyless certificates.
- Client libraries such as
sigstore-python,sigstore-goandsigstore-javalet you sign and verify from your own programs. - The policy-controller is a Kubernetes admission controller that rejects images without a valid signature. Other admission engines, such as Kyverno and OPA Gatekeeper, can also verify Cosign signatures.
- Package ecosystems use Sigstore for attestations, for example npm provenance and PyPI attestations.
How the parts fit together
The diagram shows a keyless signature and where each component takes part. Key-based signing skips Fulcio and the OIDC steps, and you hold the private key yourself.
At verification time, Cosign reads the signature and certificate from the registry. It checks that the certificate chains to the Fulcio root it got through TUF. It checks that the identity and issuer match what you asked for, and that the Rekor entry exists and shows the signature was made while the certificate was valid. If any check fails, verification fails.
Choosing what to depend on
Sigstore does not force you to use every component. Your choices change what you must trust and operate.
| Approach | Components involved | You manage | Main trade-off |
|---|---|---|---|
| Key-based, offline | Cosign only | Private key storage and rotation | Simple and works without network services, but key theft is your risk |
| Key-based with KMS | Cosign and a cloud KMS | KMS access policy | The key never leaves the KMS, but you depend on the cloud provider |
| Keyless, public good | Cosign, Fulcio, Rekor, OIDC provider | Identity policy in verification | No keys to keep, but verification depends on public services and signing details become public |
| Keyless, private instance | Cosign and your own Fulcio and Rekor | The services themselves | Full control and privacy, but real operational work |
Common misunderstandings
- A signature does not mean an image is safe. It says that a particular identity or key signed this exact digest. If the signer is compromised, or signs vulnerable software, the signature is still valid.
- Fulcio does not store signatures. The registry does. Fulcio only issues the certificate.
- Rekor is not a trust anchor for identity. It proves timing and gives an audit trail. You still must pin the identity and issuer in your verification command.
- A short-lived certificate does not make signatures expire. The signature remains verifiable after the certificate expires, because the Rekor entry proves it was made in time.
Exercise
A teammate says: "Our images are signed with Sigstore keyless signing, so the Fulcio certificate must still be valid when we verify, and since certificates last about 10 minutes, we can only verify images that were signed within the last 10 minutes." What is wrong with this statement, and which component makes it wrong?
Show answer
Verification does not require the certificate to be currently valid. Rekor records the signing event with a signed timestamp, so a verifier can confirm the signature was made while the certificate was valid, even long after it expired. The certificate's short lifetime limits when a signature can be created, not how long it can be verified.
Exercise
You must sign images for a confidential internal project, and company policy forbids publishing identities or artifact digests on public services. Which Sigstore components should you avoid using in their public-good form, and what are two alternatives?
Show answer
Avoid the public-good Rekor (and the public Fulcio, which writes to it), because entries in Rekor are public and can include the signer identity and artifact digest. Alternatives are key-based signing with a key you manage, optionally in a cloud KMS, or running private Fulcio and Rekor instances and pointing Cosign at them.