You signed images in CI. How do you make sure the cluster only runs signed images?
IntermediateScenarioSupply Chain Security
Answer
Situation read → Signing without verification is decoration. Verification must happen at admission.
What I'd do →
- Deploy Kyverno (
verifyImages) or the Sigstore policy-controller. - Define the trusted identity (issuer and subject) as in the signing pipeline.
- Start with
validationFailureAction: Audit, review violations, thenEnforce. - Use
mutateDigest: trueto rewrite tags to digests. - Exempt system namespaces with explicit rules.
Why → Admission control covers deployments from any source, including manual kubectl.
Interview tip → Mention that you also verify attestations, such as SBOM and scan results.
More on Supply Chain Security
What is an SBOM, and at which point in the pipeline do you generate it?BeginnerA customer asks for an SBOM for your product. What do you give them?BeginnerHow do you sign container images in GitHub Actions without managing private keys?IntermediateLeadership wants "SLSA compliance". What do you propose?IntermediateWhat is typosquatting and how do you protect developers from it?BeginnerYour internal package `acme-utils` exists in a private registry. How do you prevent dependency confusion?Advanced