Cosign
Sigstore's tool for signing and verifying container images and attaching signed attestations such as SBOMs.
In more detail
Cosign signs a small payload that names the image digest, so a valid signature for another digest must be rejected. It supports key pairs or keyless signing tied to a workflow identity.
Example
cosign verify --key cosign.pub registry.example/app@sha256:deadbeefRelated terms
- digital signature — A value computed from data and a secret key that lets anyone with the matching verification key confirm the data came from the key holder and was not changed.
- digest — A SHA-256 hash of an image's manifest that identifies its exact content and can never be moved to other bytes.
- provenance attestation — A signed record, attached to an image, of how, where and from what source it was built.
- Sigstore — An open-source project providing free software signing: Cosign for signing, Fulcio for certificates and Rekor for a public log.
- keyless signing — Signing with a short-lived certificate tied to an OIDC identity, such as a CI workflow, instead of a long-lived private key.
- attestation — A signed statement about an artefact, such as its SBOM or how it was built, bound to the artefact's digest.
Taught in
- A Bucket Nobody Wrote Down: State Stores Beyond Git — Certified GitOps Associate (CGOA) Exam Prep
- Tooling Sprint: The CTO's Shopping List — Certified GitOps Associate (CGOA) Exam Prep
- Verify Binaries: A Hash With No Name — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Signing And Verifying Images With Cosign — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Supply Chain Security: SBOMs & Cosign Signing — Cloud Security & DevSecOps Engineering
- Not As Root, Not In Plain Sight: Pod Security And Secrets — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Who Built This Image? Supply Chain And Registries — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Forty Minutes Of Yes: Admission Control — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Which Benchmark, And Who Checked It? Compliance And Frameworks — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Audit Day: Final Review — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Provenance And Signing — Application Security & Threat Modeling for Engineers