Interview Prep/Docker/Runtime Stack, OCI & Registries

What are image signing and cosign?

AdvancedConceptRuntime Stack, OCI & Registries
Answer

Signing proves that an image digest came from a trusted publisher. cosign (Sigstore) signs with a key or keyless via OIDC identity and stores the signature as an OCI artifact in the registry next to the image. Verify before deploy (admission controller such as Kyverno or Sigstore policy-controller).

cosign sign --yes registry.example.com/app@sha256:<digest>
cosign verify --certificate-identity-regexp '...' --certificate-oidc-issuer https://token.actions.githubusercontent.com registry.example.com/app@sha256:<digest>
All Docker questions Roadmap: Docker & containers

More on Runtime Stack, OCI & Registries