Skip to content
Vol. 1 · Ed. 2026
CyberGlossary
Entry № 757

OPA Gatekeeper

What is OPA Gatekeeper?

OPA GatekeeperOPA Gatekeeper is a CNCF policy controller that uses Open Policy Agent and the Rego language to enforce admission and audit policies on Kubernetes resources.


Gatekeeper is the Kubernetes-native packaging of the Open Policy Agent. Operators install ConstraintTemplates that contain Rego policies and ConstraintTemplate-typed CRDs whose instances are the actual Constraints (for example, K8sRequiredLabels). Gatekeeper runs as a validating and mutating admission webhook and also audits existing cluster state against Constraints. Policies can target any resource and are decoupled from the schemas they protect, so the same engine governs Pods, Ingresses, Custom Resources, and cloud-managed objects. Gatekeeper integrates with the wider OPA ecosystem (Conftest, Styra, Terraform), enabling shift-left checks in CI alongside cluster enforcement.

Examples

  1. 01

    A Constraint requiring every Deployment to declare an owner label.

  2. 02

    Gatekeeper audit reporting all pre-existing pods that violate a new Restricted Pod Security Constraint.

Frequently asked questions

What is OPA Gatekeeper?

OPA Gatekeeper is a CNCF policy controller that uses Open Policy Agent and the Rego language to enforce admission and audit policies on Kubernetes resources. It belongs to the Cloud Security category of cybersecurity.

What does OPA Gatekeeper mean?

OPA Gatekeeper is a CNCF policy controller that uses Open Policy Agent and the Rego language to enforce admission and audit policies on Kubernetes resources.

How does OPA Gatekeeper work?

Gatekeeper is the Kubernetes-native packaging of the Open Policy Agent. Operators install ConstraintTemplates that contain Rego policies and ConstraintTemplate-typed CRDs whose instances are the actual Constraints (for example, K8sRequiredLabels). Gatekeeper runs as a validating and mutating admission webhook and also audits existing cluster state against Constraints. Policies can target any resource and are decoupled from the schemas they protect, so the same engine governs Pods, Ingresses, Custom Resources, and cloud-managed objects. Gatekeeper integrates with the wider OPA ecosystem (Conftest, Styra, Terraform), enabling shift-left checks in CI alongside cluster enforcement.

How do you defend against OPA Gatekeeper?

Defences for OPA Gatekeeper typically combine technical controls and operational practices, as detailed in the full definition above.

What are other names for OPA Gatekeeper?

Common alternative names include: Gatekeeper, OPA.

Related terms