Interview Prep/Kubernetes/Security, RBAC and policy

You must allow only images from your private registry and signed by your pipeline. How?

AdvancedScenarioSecurity, RBAC and policy
Answer

Situation read → Developers can pull anything from the internet today.

What I'd do →

  1. Use a Kyverno verifyImages policy with cosign keys or keyless OIDC identities
  2. Or use Sigstore policy-controller
  3. Restrict registries with a validating policy on spec.containers[*].image
  4. Sign in CI with cosign sign
  5. Reference digests rather than tags

Why → Admission-time verification makes the supply-chain rule enforceable.

Interview tip → Mention SBOMs and attestations.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Security, RBAC and policy