open-policy-agent/conftest
Write tests against structured configuration data using the Open Policy Agent Rego query language observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 99
- Release rhythm 96
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 22.0
- age_days: 2715
- days_rel: 30
- days_push: 8
- n_releases_24m: 19
Adoption not part of the score
3249 stars · 357 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Conftest is a CLI utility for writing tests against structured configuration data using the Open Policy Agent Rego language. It validates files like Kubernetes manifests, Terraform code, and Tekton pipelines against deny/warn policy rules, commonly in CI pipelines.
Use cases
- validate kubernetes manifests against policies in ci
- test terraform code for security misconfigurations
- write policy-as-code tests for config files
- enforce that containers don't run as root
- lint structured configuration with rego policies
- generate documentation from policy metadata
When to choose
- you want policy-as-code validation of Kubernetes, Terraform, or other structured configs
- your team already uses Open Policy Agent and Rego
- you need a lightweight CLI that fits into CI/CD pipelines
When to avoid
- you need runtime admission enforcement rather than static config testing (use OPA Gatekeeper)
- you prefer writing validation rules in a non-Rego language
- you only need simple YAML/JSON schema validation without policy logic
Facets
cli-tool · maturity active
testing security configuration-management cli ci-cd developer-tools testing infrastructure-as-code security windows cli go rego open-policy-agent policy-as-code kubernetes terraform configuration-validation devops linux macos docker
4 sources
- readme: https://github.com/open-policy-agent/conftest · fetched 2026-08-28 · 40a1d1f3c51c
- homepage: https://conftest.dev · fetched 2026-08-29 · 2d6774eb8afc
- site_page: https://www.conftest.dev/install · fetched 2026-08-29 · 79a59f203ac5
- site_page: https://www.conftest.dev/documentation · fetched 2026-08-29 · f1bd135b0b9d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| open-policy-agent/conftest | main | 98 |
For agents
markdown · JSON · MCP: product_card(name="open-policy-agent/conftest")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem