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 →
- Use a Kyverno
verifyImagespolicy with cosign keys or keyless OIDC identities - Or use Sigstore policy-controller
- Restrict registries with a validating policy on
spec.containers[*].image - Sign in CI with
cosign sign - Reference digests rather than tags
Why → Admission-time verification makes the supply-chain rule enforceable.
Interview tip → Mention SBOMs and attestations.
More on Security, RBAC and policy
A developer needs read-only access to one namespace. How do you grant it?BeginnerExplain the difference between Role, ClusterRole, RoleBinding and ClusterRoleBinding.IntermediateA CI pipeline needs to deploy to one namespace. What identity do you give it?IntermediateWhat does a ServiceAccount do and why should you disable the token automount?BeginnerHow do you let pods on EKS access S3 without static keys?IntermediateA pod has access to the node's IAM role through IMDS. How do you prevent credential theft?Advanced