qmetrics.net

Conftest

Policy tests for structured configuration files using Rego

Conftest screenshot

Conftest is a CLI that tests YAML, JSON, HCL, Dockerfiles, and many other config formats with Rego policies from the Open Policy Agent ecosystem.

Overview

Conftest helps teams validate structured configuration before it reaches production. You write assertions in Rego—the policy language from Open Policy Agent—and point the tool at files such as Kubernetes manifests, Terraform HCL, Tekton pipelines, serverless definitions, or other supported formats. The conftest test command evaluates configs and reports deny, warn, and violation outcomes.

Policies usually live under a policy directory, with defaults for namespace and rule naming that CLI flags can override. Conftest accepts file paths or stdin, exposes contextual data under data.conftest for file name and directory, and can return structured metadata from rules for JSON or GitHub Actions style output including optional location hints.

A verify command runs Rego unit tests alongside policies, and built-in parse helpers let tests load HCL or other formats inside policy code. Supported parsers span YAML, JSON, Dockerfile, HCL2, TOML, XML, nginx config, SPDX, CycloneDX, and additional listed formats.

The tool is format-agnostic beyond Kubernetes examples in documentation; the same workflow applies wherever configuration is stored as structured data under test.

Key features

  • Rego policy assertions on configs
  • conftest test and verify commands
  • Many config format parsers
  • Stdin and file path evaluation
  • deny, warn, and violation rules
  • Structured JSON and GitHub output
  • parseconfig builtin for unit tests
  • data.conftest file context

Use cases

  • Kubernetes manifest guardrails
  • Terraform and HCL linting in CI
  • Pipeline and Dockerfile policy checks
  • Pre-deploy configuration validation

Tags

Similar software

act

Local runner for GitHub Actions workflows

A command-line tool that executes GitHub Actions workflows on your machine using Docker. It mirrors GitHub’s environment for faster feedback while editing workflow files.

★ 72.8k⟳ 12 days agoMIT
Build & DeploymentDesktop/CLI app

Jenkins

Java automation server for CI and delivery pipelines

Jenkins automates build, test, analysis, and deployment workflows through a Java-based controller and a large plugin ecosystem.

★ 26.8k⟳ todayMIT
Build & DeploymentSelf-hostable
Open Source Alternative to:TeamCity

Bk CI

Open-source enterprise CI and delivery platform

Bk CI automates build, test, and release workflows with visual pipelines, code checks, artifact storage, and plugin-based integrations for teams.

★ 2.5k⟳ yesterdayMIT

Playwright

Cross-browser web automation and testing framework

Playwright drives Chromium, Firefox, and WebKit through one API for tests, scripts, and agent-driven browser control.

★ 101.2k⟳ yesterdayApache-2.0

nvm

POSIX shell version manager for Node.js

nvm installs and switches between Node.js versions from the command line on POSIX shells including bash and zsh.

★ 96.3k⟳ 2 days agoMIT
Build & DeploymentDesktop/CLI app

Puppeteer

JavaScript library for automating Chrome and Firefox

Puppeteer exposes a high-level JavaScript API to drive Chrome or Firefox through the DevTools Protocol or WebDriver BiDi. It defaults to headless browser control for scripts and tests.

★ 95.9k⟳ yesterdayApache-2.0