Gatekeeper enforces governance policies on Kubernetes clusters using Open Policy Agent. It adds constraint templates, constraints, validation, mutation, audit, and external data integrations.
Overview
Gatekeeper is a policy controller for Kubernetes that helps teams enforce admission and runtime governance rules. Compared with running OPA alongside kube-mgmt, it ships Kubernetes CRDs for constraint templates and constraints, a growing policy library, mutation support, auditing, and hooks for external data providers.
Policies can block or mutate resources at admission time and report compliance drift through audit mode. Administrators deploy Gatekeeper components into a cluster using the published installation guide, then instantiate templates from the policy library or write custom Rego-backed constraints.
The project is powered by Open Policy Agent, so policy authors gain OPA’s expressiveness while operating entirely in Kubernetes native objects. Cloud vendors and distributions offer managed or packaged integrations, but the upstream project targets self-managed clusters.
External data providers let admission decisions consult systems such as artifact attestation or vulnerability services before workloads are allowed.
Key features
- OPA-powered policy engine
- Constraint and template CRDs
- Admission validation
- Resource mutation webhooks
- Cluster audit mode
- Community policy library
- External data provider support
- Parameterized policy library
Use cases
- Kubernetes admission guardrails
- Organization policy compliance
- Image and supply chain checks
- Mutating workloads to standards