How does Cosign keyless signing work?
AdvancedConceptSupply Chain, SBOM, Signing and Image/IaC Scanning
Answer
- The CI job obtains an OIDC token (for example from GitHub Actions) proving "this workflow in this repo on this ref".
- Cosign generates an ephemeral key pair and sends the public key plus token to Fulcio.
- Fulcio issues a short-lived (about 10 minute) X.509 certificate with the identity in the SAN.
- Cosign signs the image digest, discards the private key, and records the signature and certificate in Rekor.
Verification checks the signature, the certificate chain, the identity and issuer you expect, and the Rekor inclusion proof. No long-lived key to leak.
More on Supply Chain, SBOM, Signing and Image/IaC Scanning
What is a software supply chain attack? Give examples.BeginnerExplain dependency confusion and typosquatting.IntermediateWhat is an SBOM and why do we need one?BeginnerCycloneDX vs SPDX: how do they differ?IntermediateHow do you generate and use an SBOM with Syft and Grype?BeginnerWhat is VEX?Intermediate