Documentation Index
Fetch the complete documentation index at: https://docs.zenable.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Conftest tests structured configuration data against Rego policies. It supports many config formats and can validate consistency across multiple files using the--combine flag.
Capabilities
- Tests YAML, JSON, HCL, Dockerfile, TOML, XML, INI, and many more formats
- Cross-file analysis via
--combineflag deny,warn, andviolationrule types- Structured error metadata via
violationrules
Limitations
- Tests structured config data, not application source code — check out Semgrep or CodeQL for source code analysis
- Does not test runtime infrastructure state — check out InSpec or Goss for runtime validation
Cross-File Analysis
By default, conftest processes each file independently. The--combine flag merges all input files into a single array where each element has:
path: the file pathcontents: the parsed file data
Generated Format
- Language: Rego
- Structure: Policy files in
package mainwithdeny/warnrules - Execution:
conftest test <files> [--combine]