How do you verify only signed images run in Kubernetes?
AdvancedScenarioSecrets, Supply Chain and DORA
Answer
Situation read → Admission-time enforcement.
What I'd do →
- Sign in CI with
cosign sign(keyless via OIDC). - Install Kyverno with a
verifyImagespolicy requiring the signature from the CI identity and issuer. - Start in
Audit, then switch toEnforce.
Why → Unsigned or foreign images are rejected at the API server.
Interview tip → Mention rolling out in audit mode first.
More on Secrets, Supply Chain and DORA
A developer committed an AWS key to a public repo. Walk through your response.BeginnerHow do you stop secrets from being committed in the first place?IntermediateThe pipeline needs access to 15 different secrets across environments. How do you manage them?IntermediateExplain SLSA and how you would raise a pipeline's level.AdvancedA popular npm package your build uses is reported as compromised. What do you do?AdvancedDependency update PRs pile up. How do you keep dependencies fresh without chaos?Intermediate