Skip to content
SPECIFICTION
Get listed

Conftest vs Open Policy Agent

Conftest

conftest.dev

Open Policy Agent

openpolicyagent.org

Side by side

FigureConftestOpen Policy Agent
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Web—Yes
WindowsYesYes
macOSYesYes
LinuxYesYes
API—Yes
Self-hosted—Yes
Plans published11
Spec score · Infrastructure Policy as Code Tools8.5 (#5)8.2 (#8)
Community supportThe project directs discussions and questions to the Open Policy Agent Slack #opa-conftest channel.The official site links to an OPA Slack community for users to talk with other users and maintainers.
Policy languageConftest uses the Open Policy Agent Rego language for writing policies.OPA policies are written in Rego, a declarative language designed for expressing rules over complex hierarchical data.
PurposeConftest is a utility for writing tests against structured configuration data.OPA is an open-source, general-purpose policy engine that unifies policy enforcement across software systems.
SupportQuestions and discussions are directed to the Open Policy Agent Slack channel `#opa-conftest`.The project lists third-party companies offering commercial support and says the listings are not vetted endorsements.

Plans

Conftest

  • Open-source ConftestFree

Conftest pricing →

Open Policy Agent

  • Open Policy AgentFree

Open Policy Agent pricing →

In their own words

Conftest

Conftest is a free utility for testing structured configuration data, designed for use in CI environments. It uses the Open Policy Agent Rego language to express policies, then evaluates deny, violation, and warning rules within namespaces. Configuration can be read from individual files, directories, multiple files, or standard input. Supported inputs include Kubernetes-style YAML, JSON, HCL and HCL2, Dockerfiles, Terraform-related data, JSONnet, TOML, and XML. Results can be output as plaintext, JSON, TAP, table, JUnit, GitHub, Azure DevOps, or SARIF; the GitHub outputter can annotate test results in workflows. The `conftest verify` command runs policy unit tests. Policies can be pulled from HTTPS URLs, Git repositories, and OCI registries, or pushed to compatible OCI registries. Plugins extend the CLI, with downloads available from sources including OCI, Git, HTTP/HTTPS, Mercurial, and cloud storage. Pre-commit hooks support policy workflows, and integrations are documented for CircleCI, GitHub Actions, and Tekton. Conftest is available for Linux, macOS, and Windows.

Visit conftest.dev

Open Policy Agent

Open Policy Agent (OPA) is a free, open-source policy engine that separates policy decisions from the systems that enforce them. It evaluates policies against structured input and can return structured data, making it applicable to microservices, Kubernetes, CI/CD pipelines, and API gateways. Policies use Rego, a declarative language for complex hierarchical data. Applications can request evaluations through a REST API, Go API, WebAssembly runtimes, or custom evaluators using OPA's intermediate representation. Bundles distribute policy and data to OPA instances, while discovery bundles carry configuration. Management interfaces support policy distribution, health and status checks, and decision logs. Listed integrations include Kubernetes, Terraform, Envoy, and code editors; the documentation recommends OPA Gatekeeper for Kubernetes admission control. Installation options cover macOS, Linux/Unix, Windows, and Docker. OPA's security guidance says API authentication and authorization are off by default and recommends configuring TLS, authentication, and authorization when securing the API. OPA is a graduated Cloud Native Computing Foundation project.

Visit openpolicyagent.org