finds.dev

open-policy-agent/gatekeeper

🐊 Policy Controller for Kubernetes

View on GitHubHomepage ↗

★ 4,236GoApache-2.0updated Jul 2026

// the take

Gatekeeper is OPA's Kubernetes-native admission controller — you define policy as Rego wrapped in CRDs (ConstraintTemplates), and Kubernetes enforces them as a validating/mutating webhook. It's the standard answer for teams that need policy-as-code on Kubernetes and don't want to manage a raw OPA sidecar.

The CRD-driven model is genuinely well-designed: policy authors write ConstraintTemplates once, operators instantiate Constraints with parameters, and RBAC controls who can do which. Audit mode lets you scan existing resources without blocking deployments — useful for introducing policies incrementally. The `gator` CLI brings policy evaluation local so you can test constraints in CI without a live cluster. External data support (providers) lets you validate against state outside the cluster, which the raw OPA sidecar model never handled cleanly.

Rego has a steep learning curve and the error messages when a policy fails to compile are genuinely cryptic — expect to spend time debugging indirection between ConstraintTemplate, Constraint, and the Rego source. Mutation support arrived late and is still more complex to reason about than validation; ordering and conflict resolution between mutators is not obvious from the docs. The per-pod status CRDs mean a busy cluster generates a lot of noise in etcd — there's no good built-in aggregation and you'll likely need Prometheus + dashboards before you understand what's actually being denied. Upgrades between minor versions have historically required CRD migrations, and the upgrade path through a running cluster is not as smooth as the install path.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
4,236
Forks
865
Language
Go
License
Apache-2.0
Last commit
2 Jul 2026

// nearby

If gatekeeper isn't quite it.

All repos →