NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Computer Fundamentals
Before you can hack, defend, or analyze malware, you must understand the machines you are working with. The Computer Fun
ViewCybersecurity Foundations
Every great security professional starts with a rock-solid foundation. The Cybersecurity Foundations learning path is de
ViewEndpoint & Network Security Monitoring
Dive into the critical telemetry that powers modern threat detection. The Endpoint & Network Security Monitoring module
ViewIncident Response
Incident Response is the ultimate test of a security team. When the alerts turn into a confirmed breach, theory goes out
ViewSOC Tools: Hands-On Practicals
Theory is useless without muscle memory. You can read a hundred books on how a SIEM works, but until you’ve stared down
ViewRecon & Enumeration Tools
Reconnaissance is the foundation of every successful penetration test. Amateurs treat it as a box-ticking exercise, runn
ViewPreview · 30 min
Enforcing Kubernetes Admission Policies with OPA Gatekeeper
In the previous lesson, you learned how to use Conftest to evaluate Terraform plans in the CI/CD pipeline. This is an excellent "shift-left" control, but it has a fundamental limitation: it only catches what goes through the pipeline. If a developer with cluster-admin credentials runs kubectl apply directly from their laptop, or if a compromised CI/CD token is used to deploy a malicious manifest, the CI/CD gate is completely bypassed.
Enforcing Kubernetes Admission Policies with OPA Gatekeeper solves this by moving policy enforcement from the CI/CD pipeline directly into the Kubernetes API server. Gatekeeper operates as a Validating Admission Webhook, intercepting every single request to create, update, or delete resources before they are persisted in etcd. This matters because it provides an un-bypassable, runtime security boundary. No matter how a manifest is submitted, Gatekeeper mathematically guarantees that it complies with organizational security standards before the workload is ever allowed to run.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in