pkg.soopen package index

brew / rank 1396

Install conftest with Homebrew, Nix, zypper, scoop

Test your configuration files using Open Policy Agent. Version 0.69.0 via Homebrew; verified 2026-08-03. Also installable with nix: nix profile install nixpkgs#conftest.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install conftest

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#conftest

nixpkgs package indexes · pkgs/by-name/co/conftest/package.nix · source: api.github.com

openSUSE zypperverified · 92%
sudo zypper install conftest

openSUSE Tumbleweed package metadata · conftest · source: download.opensuse.org

Windows

Scoopverified · 92%
scoop install main/conftest

Scoop official bucket manifest trees · bucket/conftest.json · source: api.github.com

overview

Package summary

Test your configuration files using Open Policy Agent

Commands and aliases

  • conftest

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2025: release notes show ongoing OPA dependency updates and parser maintenance in the v0.62 line.
  • 2026: v0.68.0 added an nginx parser and moved to OPA 1.15.1.
  • 2026: v0.68.1 adjusted push behavior to use Rego v1 by default.
  • 2026: v0.68.2 updated the embedded OPA dependency to 1.15.2.

Related projects

  • Official sources tie Conftest to Open Policy Agent, Rego, Kubernetes, Tekton, Terraform, Serverless, Dockerfile, HCL, Jsonnet, CUE, and pre-commit-style workflows.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew bottle metadata was recorded.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
./conftest.toml

executables

Installed executables

CommandKindExposureNote
conftestexecutableindexed executableDiscovered from the local executable index.

freshness

Version and 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.

page generated2026-08-03
manager version0.69.0
manager updated2026-08-03
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:conftest
Version0.69.0
Package managerHomebrew
Homepagehttps://www.conftest.dev/
Repositoryhttps://github.com/open-policy-agent/conftest
Last updated2026-08-03T15:16:52Z
Pulseupdated
Bottlenot recorded
Servicenone declared

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

conftest

nix profile install nixpkgs#conftest
  • normalized package name match
  • Matched by: Conftest
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/co/conftest/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
zypper95%

conftest 0.68.2-1.4

Tool to write tests against structured configuration data

https://github.com/open-policy-agent/conftest

sudo zypper install conftest
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: conftest
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Conftest
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: conftest from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
zypper95%

conftest-bash-completion 0.68.2-1.4

Bash Completion for conftest

https://github.com/open-policy-agent/conftest

sudo zypper install conftest-bash-completion
  • License: Apache-2.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: conftest
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Conftest
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: conftest-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
zypper95%

conftest-fish-completion 0.68.2-1.4

Fish Completion for conftest

https://github.com/open-policy-agent/conftest

sudo zypper install conftest-fish-completion
  • License: Apache-2.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: conftest
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Conftest
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: conftest-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
zypper95%

conftest-zsh-completion 0.68.2-1.4

Zsh Completion for conftest

https://github.com/open-policy-agent/conftest

sudo zypper install conftest-zsh-completion
  • License: Apache-2.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: conftest
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Conftest
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: conftest-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
Scoop95%

main/conftest

scoop install main/conftest
  • normalized package name match
  • Matched by: Conftest
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/conftest.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation