macOS
brew install conftestlocal Homebrew formula metadata
brew
Test your configuration files using Open Policy Agent. Version 0.68.2 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#conftest.
install
brew install conftestlocal Homebrew formula metadata
nix profile install nixpkgs#conftestnixpkgs package indexes · pkgs/by-name/co/conftest/package.nix · source: api.github.com
sudo zypper install conftestopenSUSE Tumbleweed package metadata · conftest · source: download.opensuse.org
scoop install main/conftestScoop official bucket manifest trees · bucket/conftest.json · source: api.github.com
overview
Test your configuration files using Open Policy Agent
history
Conftest is an Open Policy Agent project for testing structured configuration data with Rego policies. It is commonly used to check Kubernetes manifests, Terraform, Tekton, Serverless configuration, and other machine-readable config before deployment.
The README and documentation describe Conftest as a utility for writing tests against structured configuration data and explicitly ground its policy language in Open Policy Agent's Rego. The project lives under the open-policy-agent GitHub organization and documents discussion in the OPA Slack #opa-conftest channel.
The documentation evolved from Kubernetes examples into a broader parser and policy-testing tool. It supports many formats including CUE, Dockerfile, HCL/HCL2, INI, JSON, Jsonnet, nginx, TOML, XML, YAML, CycloneDX, SPDX, and others, making it useful for policy-as-code checks across infrastructure repositories.
Conftest's adoption tracks the rise of policy-as-code in infrastructure delivery: it lets teams test configs locally, in CI, and through pre-commit before tools such as Kubernetes, Terraform, or deployment platforms consume them. Package-manager availability in Homebrew, Nix, Scoop, and zypper reflects that it is treated as a portable developer and CI binary.
Typical usage is to place Rego files under a policy directory and run conftest test against one or more config files. The tool evaluates deny, violation, and warn rules in the main namespace by default, but supports namespace flags, stdin, metadata, unit tests with conftest verify, and parser builtins for policy tests.
For package curators, Conftest is notable because it packages OPA's policy engine into a focused CLI for files rather than services. It turns Rego from a runtime authorization language into a general-purpose config linting and testing binary that can sit cleanly in CI images and developer package sets.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
./conftest.tomlexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
conftest | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/open-policy-agent/conftest
install metadata
| Package key | brew:conftest |
|---|---|
| Version | 0.68.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/conftest |
| Homepage | https://www.conftest.dev/ |
| Repository | https://github.com/open-policy-agent/conftest |
| Upstream docs | https://www.conftest.dev/ |
| License | Apache-2.0 |
| Source archive | https://github.com/open-policy-agent/conftest/archive/refs/tags/v0.68.2.tar.gz |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | conftest |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
conftest
nix profile install nixpkgs#conftestconftest 0.68.2-1.1
Tool to write tests against structured configuration data
https://github.com/open-policy-agent/conftest
sudo zypper install conftestconftest-bash-completion 0.68.2-1.1
Bash Completion for conftest
https://github.com/open-policy-agent/conftest
sudo zypper install conftest-bash-completionconftest-fish-completion 0.68.2-1.1
Fish Completion for conftest
https://github.com/open-policy-agent/conftest
sudo zypper install conftest-fish-completionconftest-zsh-completion 0.68.2-1.1
Zsh Completion for conftest
https://github.com/open-policy-agent/conftest
sudo zypper install conftest-zsh-completionmain/conftest
scoop install main/conftestsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.