Interview Prep/DevSecOps/Supply Chain, SBOM, Signing and Image/IaC Scanning

How does Cosign keyless signing work?

AdvancedConceptSupply Chain, SBOM, Signing and Image/IaC Scanning
Answer
  1. The CI job obtains an OIDC token (for example from GitHub Actions) proving "this workflow in this repo on this ref".
  2. Cosign generates an ephemeral key pair and sends the public key plus token to Fulcio.
  3. Fulcio issues a short-lived (about 10 minute) X.509 certificate with the identity in the SAN.
  4. 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.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply Chain, SBOM, Signing and Image/IaC Scanning