# conftest を Homebrew, Nix, zypper, scoop でインストール

conftest のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:conftest
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install conftest
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#conftest
```

  証拠: nixpkgs package indexes: pkgs/by-name/co/conftest/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install conftest
```

  証拠: openSUSE Tumbleweed package metadata: conftest from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/conftest
```

  証拠: Scoop official bucket manifest trees: bucket/conftest.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:conftest
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.69.0
- **ソース概要:** Test your configuration files using Open Policy Agent
- **ホームページ:** <https://www.conftest.dev/>
- **リポジトリ:** <https://github.com/open-policy-agent/conftest>
- **最終更新:** 2026-08-03T15:16:52Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- conftest (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.69.0
## プロジェクトの歴史と使われ方

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.

### タイムライン

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

### ソース

- <https://github.com/open-policy-agent/conftest#readme>
- <https://www.conftest.dev/>
- <https://www.conftest.dev/install/>
- <https://github.com/open-policy-agent/conftest/releases>
- <https://github.com/open-policy-agent/conftest/releases/tag/v0.68.0>
- <https://github.com/open-policy-agent/conftest/releases/tag/v0.68.1>
- <https://github.com/open-policy-agent/conftest/releases/tag/v0.68.2>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## 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

- Unix: ./conftest.toml
## 他のパッケージマネージャ記録

- Nix - conftest: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/conftest/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - conftest - 0.68.2-1.4: normalized package name match | openSUSE Tumbleweed package metadata: conftest from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tool to write tests against structured configuration data | https://github.com/open-policy-agent/conftest
- zypper - conftest-bash-completion - 0.68.2-1.4: normalized package name match | openSUSE Tumbleweed package metadata: conftest-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for conftest | https://github.com/open-policy-agent/conftest
- zypper - conftest-fish-completion - 0.68.2-1.4: normalized package name match | openSUSE Tumbleweed package metadata: conftest-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for conftest | https://github.com/open-policy-agent/conftest
- zypper - conftest-zsh-completion - 0.68.2-1.4: normalized package name match | openSUSE Tumbleweed package metadata: conftest-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh Completion for conftest | https://github.com/open-policy-agent/conftest
- Scoop - main/conftest: normalized package name match | Scoop official bucket manifest trees: bucket/conftest.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/conftest.yml](https://github.com/mxcl/pkgdb/blob/main/combined/conftest.yml)


## ソース

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