# Gatekeeper

> Policy Controller for Kubernetes

Source: https://talira.ai/catalog/gatekeeper-dbrgamcz
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure, Command-line tool
- Categories: [security / policy as code](https://talira.ai/categories/security/policy-as-code), [infrastructure / kubernetes](https://talira.ai/categories/infrastructure/kubernetes)
- Platforms: kubernetes, cli, linux, macos[^1][^4]
- Licence: Apache-2.0[^5]
- Pricing: Free and open source[^5]
- Free tier: yes[^5]
- Self-hostable: yes[^1]
- Backed by: [Open Policy Agent](https://talira.ai/orgs/open-policy-agent.md), [Cloud Native Computing Foundation](https://talira.ai/orgs/cncf.md)
- Funding: non-profit[^6][^7]

Gatekeeper is a validating and mutating admission webhook for [Kubernetes](https://talira.ai/catalog/kubernetes-ftsegx3m.md) that enforces policies defined as custom resources and executed by [Open Policy Agent](https://talira.ai/catalog/open-policy-agent-rerf6ac8.md). A ConstraintTemplate holds the logic, in Rego or in CEL through its K8sNativeValidation engine, and Constraints apply it with parameters, to deny, warn or dry-run; audit reports the existing resources that violate a policy, and mutators (Assign, AssignMetadata, ModifySet, AssignImage) change resources at admission. It can also generate Kubernetes ValidatingAdmissionPolicy resources from CEL templates, and the `gator` CLI tests templates and constraints locally or in CI. It's part of the Open Policy Agent project, Apache-2.0, with a library of ready-made policies.

## Links

- Website: https://open-policy-agent.github.io/gatekeeper/website/
- GitHub: https://github.com/open-policy-agent/gatekeeper
- Docs: https://open-policy-agent.github.io/gatekeeper/website/docs/

## Ways to install

### On Kubernetes

- [Artifact Hub](https://talira.ai/catalog/artifact-hub-s43pzyps.md): <https://artifacthub.io/packages/helm/gatekeeper/gatekeeper>[^1]

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/gator>[^2]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/gator>[^3]

## Problems it solves

- block pods that run as root or use privileged mode from ever being created in the cluster
- require every namespace and deployment to carry an owner label before the API server accepts it
- find all existing resources in the cluster that break our rules, not just new ones
- only allow container images from our own registry across all clusters
- set default labels, image tags or security settings on resources automatically as they're created
- write cluster admission rules once and reuse them with different parameters per team
- test admission policies in CI against manifests before they reach the cluster
- roll out a new cluster rule in warn or dry-run mode first to see what it would block
- enforce our admission rules with the API server's built-in CEL policies instead of a webhook
- start from a library of common pod security and compliance rules instead of writing them from scratch

## Features

- ConstraintTemplate and Constraint custom resources
- Rego and CEL (K8sNativeValidation) engines
- deny, warn, dry-run and scoped enforcement actions
- audit of existing resources against policies
- mutation with AssignMetadata, Assign, ModifySet and AssignImage
- generates ValidatingAdmissionPolicy and bindings from CEL templates (Kubernetes 1.30+)
- gator CLI: test, verify, expand, sync test, bench and policy commands
- Gatekeeper policy library of parameterized policies
- Helm chart and prebuilt manifests

## Limitations

- The gator CLI isn't tested on Windows: only Linux is tested on each commit[^4]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.75 out of 1.
Signals: maintenance 1.00, adoption 0.73, momentum 0.50, community 0.98, backing 0.55, extensibility 0.20.

- last commit 5 days ago
- 98 commits in the last 90 days
- latest release v3.23.1 2 months ago
- 4.3k GitHub stars
- 274 contributors
- backed by Open Policy Agent and Cloud Native Computing Foundation
- funding: non-profit

## Related

- Based on [Open Policy Agent](https://talira.ai/catalog/open-policy-agent-rerf6ac8.md)
- Works with [Kubernetes](https://talira.ai/catalog/kubernetes-ftsegx3m.md)

## Alternatives

- [Kyverno](https://talira.ai/catalog/kyverno-29hn8ks7.md): Unified Policy as Code
- [Kubewarden](https://talira.ai/catalog/kubewarden-c82va2hp.md): Manage admission policies in your Kubernetes cluster with ease

## Sources

[^1]: https://open-policy-agent.github.io/gatekeeper/website/docs/install (checked 20 Nov 2026)
[^2]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^3]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^4]: https://open-policy-agent.github.io/gatekeeper/website/docs/gator (checked 20 Nov 2026)
[^5]: https://github.com/open-policy-agent/gatekeeper/blob/master/LICENSE (checked 20 Nov 2026)
[^6]: https://www.cncf.io/about/charter/ (checked 20 Nov 2026)
[^7]: https://www.cncf.io/ (checked 20 Nov 2026)
