For a policy-as-code engine for Kubernetes, the first results are kyverno/kyverno, datreeio/datree (Datree is a Kubernetes policy enforcement framework that validates resource configurations via admission webhooks and CLI scanning using Rego, CEL, or JSON Schema, fitting the policy-engine category, though it lacks mutation support and explicit constraint template constructs) and open-policy-agent/gatekeeper (Gatekeeper is a policy controller for Kubernetes that enforces OPA-based policies via admission control, supports constraint templates, audit, and mutation, making it a comprehensive solution for your search). kubescape/kubescape and sigstore/policy-controller round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
Automated tools that validate and enforce security or compliance policies across your Kubernetes cluster resources.
Kyverno is a Kubernetes policy engine and cloud native governance tool. It functions as a policy-as-code framework that validates, mutates, and generates resources to enforce security and governance standards within a cluster. The project distinguishes itself through a declarative policy model that utilizes native Kubernetes custom resource definitions, allowing policies to be managed as standard cluster objects without custom code. It provides specific security capabilities for container image verification and signature validation to ensure only trusted images are deployed. Its broader capa
Kyverno is a Kubernetes-native policy engine that validates, mutates, and generates resources via admission control, using declarative policy-as-code with Custom Resource Definitions — it directly meets the search for a Kubernetes policy engine with support for enforcement, mutation, and compliance features.
Datree is a policy enforcement framework for Kubernetes that validates configurations against rules written in Rego, JSON Schema, or CEL. It operates as both a command-line tool for pre-deployment scanning and as a cluster-side admission webhook for real-time enforcement, integrating with CI/CD pipelines and continuous delivery tools like ArgoCD and FluxCD. The framework supports namespace-scoped policy mapping, allowing different policies to apply to different namespaces, and provides a skip annotation mechanism for selectively bypassing rules on individual resources or entire namespaces. It
Datree is a Kubernetes policy enforcement framework that validates resource configurations via admission webhooks and CLI scanning using Rego, CEL, or JSON Schema, fitting the policy-engine category, though it lacks mutation support and explicit constraint template constructs.
Gatekeeper is a Kubernetes admission control and policy enforcement engine used to ensure cluster resources comply with organizational security and configuration standards. It intercepts API requests to validate or reject non-compliant resources before they are persisted in the cluster. The project uses a parameterized policy library and custom resource definitions to create reusable templates and enforcement rules. It distinguishes itself through a hub-and-spoke management model, allowing a controller in a management cluster to enforce policies across separate target clusters. Beyond admiss
Gatekeeper is a policy controller for Kubernetes that enforces OPA-based policies via admission control, supports constraint templates, audit, and mutation, making it a comprehensive solution for your search.
Kubescape is a Kubernetes security posture management platform designed to scan clusters, manifests, and images for misconfigurations, vulnerabilities, and compliance risks. It functions as a comprehensive security suite incorporating a compliance scanner, a container image vulnerability scanner, an admission controller for policy enforcement, and a runtime security monitor. The platform distinguishes itself through runtime-aware vulnerability filtering, which maps libraries loaded in memory to determine if vulnerabilities are actually reachable. It also integrates with AI assistants via a Mo
Kubescape includes an admission controller for policy enforcement and compliance scanning, so it can define and enforce governance policies on Kubernetes, though its broader security‑posture scope goes beyond a dedicated policy engine.
Sigstore Policy Controller - an admission controller that can be used to enforce policy on a Kubernetes cluster based on verifiable supply-chain metadata from cosign
Sigstore Policy Controller is an admission controller that enforces policy on Kubernetes clusters using verifiable supply-chain metadata from cosign, making it a valid but specialized Kubernetes policy engine focused on image supply-chain security rather than general governance.
Conftest is a suite of tools designed for validating structured configurations, testing policy logic, and generating policy documentation. It serves as a configuration file validator that checks YAML, JSON, and Helm charts for security violations and compliance issues using declarative rules. The project functions as an Open Policy Agent testing tool, allowing structured configuration files to be validated against custom policies written in Rego. It includes a policy-as-code testing framework to ensure policy logic is correct and a utility to extract metadata from Rego code to create static m
Conftest is a CLI tool for offline validation of Kubernetes manifests and config files against Rego policies, but it does not run as an admission controller or enforce rules in real time on a cluster, which means it is a complementary policy-testing tool rather than a full Kubernetes policy engine.
Terrascan is a static analysis tool designed to evaluate infrastructure-as-code configuration files for security vulnerabilities and compliance violations. By parsing these files into an intermediate representation, it identifies risks before cloud resources are provisioned, serving as a compliance auditor for cloud-native environments. The tool functions as a policy-as-code engine, allowing users to define and enforce custom security rules and industry benchmarks using a specialized query language. It distinguishes itself through its ability to integrate directly into development and deploym
Terrascan is a static analysis tool for infrastructure-as-code files that enforces security and compliance policies, but it checks configurations before deployment rather than governing running Kubernetes resources through admission control, so it's a neighbouring category rather than the Kubernetes-native policy engine you're looking for.
This project is a unified, cloud-native policy engine designed to decouple authorization and security logic from application codebases. It functions as a centralized authorization service that evaluates structured input data against declarative rules, enabling consistent policy enforcement across microservices, infrastructure, and continuous integration pipelines. The engine utilizes a specialized logic programming language to express complex constraints, which are compiled into an optimized intermediate representation for high-performance evaluation. By supporting both sidecar-based deployme
OPA is a general-purpose policy engine that can be used for Kubernetes admission control through integrations like Gatekeeper, but it is not a Kubernetes-specific policy engine itself — the visitor likely wants a tool purpose-built for cluster resource enforcement, such as Gatekeeper or Kyverno.
The Common Expression Language specification is a formal standard for a non-Turing-complete expression language designed for safe, portable, and fast logic evaluation. It serves as a cross-language logic standard and a declarative policy language, providing a consistent semantic framework for executing boolean expressions and data transformations across different programming environments. This specification acts as an embedded expression engine that allows applications to integrate portable logic for evaluating user-defined configurations. It is specifically designed to enable safe user-defin
This repository defines the Common Expression Language (CEL) specification — a portable expression language used in policy engines — but it is not itself a tool that enforces governance or compliance policies on Kubernetes resources via admission control.
Ory Keto is an open-source authorization server that implements Google Zanzibar’s relationship-based access control model. It stores every access relationship as a tuple in a SQL database and exposes a declarative TypeScript-like namespace language for defining object types, relations, and permissions. The service provides bidirectional permission resolution, configurable consistency levels for checks, and dual gRPC and REST APIs for broad integration. Keto extends the Zanzibar model with edge enforcement of access policies, structured compliance auditing of permission decisions, and infrastr
Ory Keto is a general-purpose authorization server based on Google Zanzibar, not a Kubernetes-specific policy engine — it handles access control for any application but lacks admission control or integration with Kubernetes resources, which is what this search is after.
Kubebuilder is a framework and set of scaffolding tools used to build Kubernetes APIs and controllers. It functions as an operator framework that provides generators for custom resource definitions, admission webhooks, and RBAC manifests to extend cluster functionality. The project distinguishes itself through marker-based code generation, which parses source code comments to automatically produce Kubernetes manifests and boilerplate logic. It employs a hub-and-spoke versioning model to translate data between multiple API versions and uses a three-way merge strategy to automate project migrat
Kubebuilder is a framework for building Kubernetes operators and controllers, including admission webhooks, but it is not a policy engine itself—it is a tool to create custom extensions, not a ready-to-use policy enforcement system with rule sets, constraint templates, and audit reporting.
Terraform is a declarative infrastructure-as-code tool designed to manage the lifecycle of cloud and on-premises resources. It functions as a workflow engine that reconciles a defined desired state against real-world infrastructure, using a persistent state-tracking layer to maintain consistency and visibility across distributed environments. By mapping infrastructure components into a directed acyclic graph, the system calculates the optimal order for provisioning, updating, or destroying resources. The platform is distinguished by its extensible plugin-based architecture, which decouples co
Terraform is an infrastructure-as-code tool for managing cloud resources, not a Kubernetes-native policy engine; while it can enforce some policies via integrations, it does not perform admission control on Kubernetes resources as its core purpose.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| kyverno/kyverno | 7.8K | Go | Apache-2.0 | |
| datreeio/datree | 6.3K | Go | Apache-2.0 | |
| open-policy-agent/gatekeeper |
| 4.2K |
| Go |
| Apache-2.0 |
| kubescape/kubescape | 11.5K | Go | Apache-2.0 |
| sigstore/policy-controller | 175 | Go | NOASSERTION |
| open-policy-agent/conftest | 3.1K | Go | other |
| tenable/terrascan | 5.2K | Go | Apache-2.0 |
| open-policy-agent/opa | 11.9K | Go | Apache-2.0 |
| google/cel-spec | 3.7K | Starlark | apache-2.0 |
| ory/keto | 5.3K | Go | apache-2.0 |