EVERYTHING XIAOMI
Get listed

Conftest

Conftest is a free utility for testing structured configuration data, designed especially for CI environments.

Place
#6 of 28
Score
6.8
Conftest's website

What Conftest is

Conftest is a free utility for testing structured configuration data, designed especially for 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 checked from a file, directory, multiple files or standard input. Supported formats include Kubernetes-style YAML, JSON, HCL and HCL2, Dockerfiles, Terraform-related data, JSONnet, TOML and XML. Results can be written as plaintext, JSON, TAP, table, JUnit, GitHub, Azure DevOps or SARIF output, and its GitHub formatter can annotate findings in workflows. The `conftest verify` command runs policy unit tests. Policies can be retrieved from HTTPS URLs, Git repositories and OCI registries, and sent to compatible OCI registries. Plugins extend the CLI and can be obtained through multiple sources, including OCI, Git, HTTP/HTTPS and cloud storage. Pre-commit hooks support policy testing, verification, documentation, pulling and formatting. Conftest documents integrations with CircleCI, GitHub Actions and Tekton, and is available for Linux, macOS and Windows.

Good

  • Tests Kubernetes, Terraform and other structured data.
  • Accepts files, directories or standard input.
  • Provides CI-oriented output formats including SARIF.
  • Supports policy unit tests with `conftest verify`.

Watch out

  • Uses the Open Policy Agent Rego language for policies.
  • The instrumenta/conftest container image is deprecated.

Who it suits

Conftest suits teams that want to check infrastructure or other structured configuration in CI workflows. Its Rego policies and varied output formats may be useful for teams using Open Policy Agent.

Verdict

Conftest provides policy-based configuration checks for CI, along with several input types, output formats and plugin sources. It is free under the Apache License 2.0 and runs on Linux, macOS and Windows.

Plans and prices

From Conftest's own pricing page, checked 1 Oct 2026.

All about pricing
PlanPriceWhat it gives you
Open-source ConftestFreeApache License 2.0

The facts

Each one read from Conftest's own pages, with the date it was checked.

What it does

CI integration
The project documents integrations with CircleCI, GitHub Actions and Tekton Pipelines.checked 1 Oct 2026
CI outputs
Output formats include JSON, TAP, table, JUnit, GitHub, Azure DevOps, and SARIF.checked 30 Sep 2026
Community support
The project directs discussions and questions to the Open Policy Agent Slack #opa-conftest channel.checked 30 Sep 2026
Configuration targets
Conftest supports Kubernetes configurations, Tekton pipeline definitions, Terraform code, Serverless configurations and other structured data.checked 1 Oct 2026
Deployment options
Conftest can be installed with Homebrew, Scoop, Mise, Docker, or from source.checked 30 Sep 2026
Deprecated image
The instrumenta/conftest container image is deprecated and the documentation directs users to openpolicyagent/conftest.checked 30 Sep 2026
GitHub integration
The GitHub outputter can annotate configuration test results for GitHub workflows.checked 30 Sep 2026
Input methods
Configuration can be tested from files, directories, multiple files, or standard input.checked 30 Sep 2026
Output formats
Conftest supports plaintext, JSON, TAP, table, JUnit, GitHub, Azure DevOps and SARIF output.checked 1 Oct 2026
Plugins
Conftest plugins extend the CLI and can be downloaded from OCI registries, local files, Git, HTTP/HTTPS, Mercurial, Amazon S3 and Google Cloud Storage.checked 1 Oct 2026
Plugin system
Plugins can extend the Conftest CLI and can be downloaded through OCI, local files, Git, HTTP/HTTPS, Mercurial, Amazon S3, or Google Cloud Storage.checked 30 Sep 2026
Policy language
Conftest uses the Open Policy Agent Rego language for writing policies.checked 1 Oct 2026
Policy rules
Conftest evaluates deny, violation, and warn rules and supports namespaces.checked 30 Sep 2026
Policy sharing
Conftest can pull policies from HTTPS, Git and OCI registries and push policy bundles to compatible OCI registries.checked 1 Oct 2026
Policy testing
The `conftest verify` command executes policy unit tests and reports their results.checked 1 Oct 2026
Pre-commit
Conftest can run as a pre-commit hook to validate configuration files before committing them.checked 1 Oct 2026
Project affiliation
Conftest is a utility built on top of Open Policy Agent.checked 1 Oct 2026
Purpose
Conftest is a utility for writing tests against structured configuration data.checked 1 Oct 2026
Release security
Every release asset, checksums file and container image is attested with GitHub artifact attestations using SLSA provenance statements signed through Sigstore.checked 1 Oct 2026
Support
Questions and discussions are directed to the Open Policy Agent Slack channel `#opa-conftest`.checked 1 Oct 2026
Supported formats
Supported formats include YAML, JSON, HCL/HCL2, Dockerfile, TOML, CUE, XML, INI, SPDX and CycloneDX.checked 1 Oct 2026
Target users
Conftest is designed for configuration testing in CI environments.checked 30 Sep 2026
The full review of Conftest

Overview

Conftest is a command-line utility for checking configuration against policies written in Rego, the language used by Open Policy Agent. It suits teams that want policy checks inside CI and are comfortable working with policy code. Its breadth of input and CI output options is a strong fit for varied infrastructure workflows, though it is not a turnkey visual policy-management service.

Key features

Conftest checks Kubernetes-style YAML, JSON, HCL and HCL2, Dockerfiles, Terraform-related data, JSONnet, TOML, XML, and other formats. Teams can pass a single file, a directory, multiple files, or standard input, making it practical to place checks at different points in a configuration workflow. It evaluates deny, violation, and warn rules and supports namespaces, while conftest verify runs policy unit tests. That combination lets teams validate both their configurations and the policies governing them.

For automation, output can be plaintext, JSON, TAP, table, JUnit, GitHub, Azure DevOps, or SARIF. The GitHub outputter can annotate results in workflows; documented integrations also cover CircleCI and Tekton Pipelines. This range helps fit results into existing CI systems, but users still need to author and maintain the Rego policies.

Policies can be pulled from HTTPS URLs, Git repositories, and OCI registries, and pushed to compatible OCI registries. Plugins extend the CLI and can be downloaded through OCI, local files, Git, HTTP or HTTPS, Mercurial, Amazon S3, or Google Cloud Storage. Pre-commit hooks cover testing, verifying, documenting, pulling, and formatting policies. These options support shared policy workflows, although they add moving parts for teams that only need a small set of local checks.

Conftest releases, checksums, and container images carry GitHub artifact attestations with SLSA provenance signed through Sigstore. It can be installed with Homebrew, Scoop, Mise, Docker, or from source. The old instrumenta/conftest container image is deprecated; deployments using a container should use openpolicyagent/conftest instead.

Pricing

Open-source Conftest costs free under the Apache License 2.0. The free plan includes the policy-checking utility; no paid plan, seat cap, or usage quota is part of this offering. It is a compelling option when a team can operate its own policy workflow, but the project directs questions and discussions to the Open Policy Agent Slack #opa-conftest channel rather than offering a paid support tier.

Platforms

Conftest runs on Linux, macOS, and Windows. The choice of Homebrew, Scoop, Mise, Docker, or source installation gives teams several ways to match installation to their environment.

Who it's for

Conftest is best for infrastructure and platform teams that already use OPA or are prepared to write Rego policies, and want configuration checks in CI. Its support for Kubernetes, Terraform, Tekton, Serverless, and other structured data suits teams governing more than one configuration type. Readers looking for a point-and-click interface or policy checks without writing rules should look elsewhere.

Pros and cons

  • Pros: Broad input coverage. YAML, JSON, HCL/HCL2, Dockerfiles, JSONnet, TOML, and XML support makes one tool useful across varied configuration sources.
  • Pros: CI-friendly reporting. GitHub annotations and formats such as JUnit, Azure DevOps, and SARIF help deliver findings where teams work.
  • Pros: Policy workflow support. Verification, pre-commit hooks, policy sharing, and extensible plugins cover more than just running a check.
  • Cons: Rego is central to the workflow. Teams that do not want to write and maintain policy code may find Conftest a poor fit.
  • Cons: Community-oriented support. Questions go to the OPA Slack channel, which may not suit organizations needing formal vendor support.

Alternatives

For AWS-focused infrastructure provisioning, choose AWS CloudFormation when its AWS service model is a better fit; CloudFormation itself is free, while underlying AWS resources are billed at their own rates. Test Kitchen is another free, Apache-licensed option for readers seeking a different infrastructure testing tool. For CloudFormation template linting specifically, cfn-lint is a free alternative.

Chef InSpec offers a free plan limited to non-production workloads and personal, non-commercial use, plus a 30-day trial; consider it when those terms and its approach better match the intended use. Cinc Auditor is a free distribution of Chef InSpec, with no formal warranties or support. OpenSCAP is a free open-source option for readers comparing infrastructure security tools. TFLint is a free command-line Terraform linter, while KICS is a free open-source infrastructure policy-as-code project.

Browse Infrastructure Testing Tools, Infrastructure as Code Security Software, and Infrastructure Policy as Code Tools for more options by category.

Verdict

Choose Conftest if your team wants free, CI-oriented configuration policy checks across multiple formats and can work in Rego. Its flexible inputs, integrations, and policy tooling are the main reasons to pick it; teams that need a visual workflow or formal support should look elsewhere.

Getting started

  1. Visit https://www.conftest.dev/.
  2. Install Conftest with Homebrew, Scoop, Mise, Docker or from source.
  3. Prepare a policy using the Open Policy Agent Rego language.
  4. Run Conftest against configuration files, a directory, multiple files or standard input.
  5. Choose an output format or configure a documented CI integration.

Questions

How much does Conftest cost?

Conftest is free under the Apache License 2.0.

Which operating systems does it support?

Conftest supports Linux, macOS and Windows.

What configuration formats can it check?

Supported inputs include Kubernetes-style YAML, JSON, HCL and HCL2, Dockerfiles, Terraform-related data, JSONnet, TOML and XML, among other formats.

Can it annotate GitHub workflow results?

Yes. Its GitHub outputter can annotate configuration test results in GitHub workflows.

Where can policies and plugins come from?

Policies can be pulled from HTTPS URLs, Git repositories and OCI registries. Plugins can be downloaded from OCI, local files, Git, HTTP or HTTPS, Mercurial, Amazon S3 or Google Cloud Storage.

How can users get help?

The project directs questions and discussions to the Open Policy Agent Slack channel #opa-conftest.

Alternatives to Conftest

All alternatives
  1. 1

    Chef InSpec

    Free planOpen sourceAPILinuxmacOSSelf-hosted
    8.0From $59 a year
  2. 2AWS CloudFormation logo

    AWS CloudFormation

    Free planiOSWebAPILinux
    7.7Free plan
  3. 3CIS-CAT Pro Assessor logo

    CIS-CAT Pro Assessor

    Free planAPILinuxmacOSSelf-hosted
    7.7From $2,400 a year
  4. 4

    Test Kitchen

    Free planOpen sourceAPILinuxmacOSSelf-hosted
    7.2Free plan
  5. 5

    kube-score

    Free planWebLinuxmacOSSelf-hosted
    7.0Free plan
  6. 6

    Kubetest2

    Free planOpen sourceAPISelf-hosted
    6.8Free plan