Bringing Kubernetes Policy Enforcement to GitLab’s Workflow
summary
Shows how to run Open Policy Agent and Gatekeeper checks inside GitLab CI so policy violations surface at commit or merge-request time instead of at deploy time. Uses Open Policy Agent with Gatekeeper, runs validations via conftest or a kpt/kept-style manifest pipeline, and recommends testing against Gatekeeper in a cluster. Outcome: catching violations earlier prevents sync failures from GitOps controllers and shortens the feedback loop for config errors.
AI-written summary · about
chapters (14)
- 0:00Introduction and context
- 1:12Speaker introduction and basics
- 3:37Open Policy Agent overview
- 4:59Gatekeeper and policy enforcement
- 7:06Constraints and templates explained
- 8:50Limitations of runtime enforcement
- 10:14Early validation workflows
- 11:59Conftest with GitLab CI
- 13:01Kubeval approach
- 13:43Policy repositories structure
- 15:46Getting started with tools
- 17:55Community examples and resources
- 19:00Key considerations and best practices
- 20:02Closing remarks and Q&A
