CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Security Specialist

Restricting Permitted Image Registries

Securing a supply chain means deciding what the cluster will run before it runs it. This guide writes a policy that permits two registries and requires a digest, shows each rule refusing something different, and is clear about what admission control cannot check.

Supply Chain Security Guide 28 of 40 Intermediate

Written against the versions above. ValidatingAdmissionPolicy with CEL, built into the apiserver. It evaluates the object in front of it and cannot make a network call, which decides what this control can and cannot do.

The cka6001 cluster: one control plane and 2 schedulable workers, on Cilium.
Server NameIP AddressOSRolesCPURAMHDD
CKA6001192.168.0.46Ubuntu 26.04 LTSControl Plane Node (tainted NoSchedule)2 Core4 GB50 GB
CKA6001-NODE01192.168.0.47Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA6001-NODE02192.168.0.48Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. The cluster will run anything from anywhere

  2. One policy, two rules

  3. Three attempts

  4. What this policy cannot do

  5. The plugin the exam still asks about

Official sources