Interview Prep/Real-World Interview/Monitoring and security

How do you sign and verify a container image?

AdvancedConceptMonitoring and security
Answer

With Sigstore cosign. Keyless signing uses OIDC identity from CI. Enforce verification at admission with Kyverno or policy-controller.

cosign sign myrepo/app@sha256:<digest>
cosign verify myrepo/app@sha256:<digest> --certificate-identity-regexp '.*' --certificate-oidc-issuer https://token.actions.githubusercontent.com
All Real-World Interview questions Roadmap: Interview readiness

More on Monitoring and security