Alternatives to Conftest
Writes tests against configuration files using Open Policy Agent rules. The listings below can replace it for an important use case. Each note says what changes if you switch.
The original
Conftest
Writes tests against configuration files using Open Policy Agent rules.
Replacements
Listings that take over the same core job as Conftest.
Open Policy Agent
Evaluate authorization and configuration policies with a policy engine.
Open Policy Agent is the Rego policy engine Conftest builds on, evaluating authorization and configuration policies across applications rather than focusing on testing configuration files.
Similar software
Related functionality, not a direct replacement.
Hadolint
Dockerfile linter that also checks the shell commands inside it.
actionlint
Find mistakes in GitHub Actions workflows before running them.
YAMLlint
An online YAML validator that checks pasted YAML and returns a clean UTF-8 version.
OpenTofu
Describe and manage infrastructure with versioned configuration files.
yamlfmt
Format YAML files consistently from the command line.
ShellCheck
Catch common shell-script mistakes before running them.