Tirith
github.com
- Free plan
- Linux
What Tirith is
Tirith is a free Linux command-line tool from StackGuardian for checking infrastructure documents against declarative JSON policies. It reports whether each rule passed or failed and identifies the affected resource and value. Its pipeline gate evaluates Terraform plan output and can return a nonzero exit code when a policy violation is found, allowing a CI job to stop before infrastructure changes are applied. Documented inputs include Terraform plans and state, Kubernetes manifests, Infracost breakdowns, and other JSON documents. Policies can use providers and evaluators such as ContainedIn, Equals, and RegexMatch, while the provider architecture can be extended for additional formats. Local evaluation runs on the user’s runner, with the project saying policies and documents are not sent elsewhere. Optional organization mode checks plans against StackGuardian policies and uploads a masked document for evaluation. Tirith documents GitHub Actions and direct CLI use in GitLab or other container-based CI jobs, plus Bitbucket Pipelines, other CI systems, and local use. OpenTofu plans work like Terraform plans for the documented gate. A beta terminal interface offers result exploration, policy building, examples, and browser serving.
Who it suits
Tirith suits DevSecOps engineers, infrastructure architects, cloud administrators, and others who manage infrastructure guardrails. It fits teams enforcing JSON policies in CI/CD or locally.
Good to know, and what to watch
- Free open-source CLI with no account required
- Checks Terraform, Kubernetes, Infracost, and JSON inputs
- Returns nonzero status for policy violations
- Supports GitHub Actions and direct CI use
- Local mode keeps evaluation on the runner
- No GitLab-native action equivalent
- Organization mode uploads a masked document
- Interactive interface is optional beta
Plans
Every plan and priceTirith (Apache-2.0)
Free plan
The verdict
Tirith provides policy checks and reporting for infrastructure documents, with a gate that can stop Terraform or OpenTofu changes before application. Its broad JSON-oriented inputs and CI options suit teams that want declarative guardrails without requiring an account for local use.
What the maker publishes
- CI integrations
- The README documents a GitHub Actions integration and direct CLI use in GitLab or other container-based CI jobs. source
- Headquarters
- Germany source
- Intended users
- The project names DevSecOps engineers, infrastructure architects, cloud administrators, and others who manage or enforce infrastructure guardrails. source
- Interactive interface
- The optional beta terminal interface provides an Explorer for results, a Builder for policies, and a Playground for examples; it can also be served in a browser. source
- Maker and founding
- StackGuardian says it was founded in 2022. source
- Notable limitation
- The maker says there is no GitLab-native action equivalent, so GitLab users invoke the CLI directly. source
- OpenTofu
- The maker's site says OpenTofu plans work identically to Terraform plans for the documented gate. source
- Organization mode
- The optional platform check evaluates plans against policies enforced by a StackGuardian organization and uploads a masked document to StackGuardian for evaluation. source
- Other CI platforms
- The maker's site lists GitHub Actions, GitLab CI, Bitbucket Pipelines, any CI, and local CLI as ways to run Tirith. source
- Pipeline gate
- It checks Terraform plan output and can return a nonzero exit code for a policy violation before infrastructure changes are applied. source
- Policy features
- Policies can use providers and evaluators such as ContainedIn, Equals, and RegexMatch, and the provider architecture can be extended for other input formats. source
- Policy maintenance
- The CLI includes lint and format commands, and both are published as pre-commit hooks. source
- Purpose
- Tirith evaluates infrastructure documents against declarative JSON policies and reports which rules passed or failed, including the affected resource and value. source
- Sensitive values
- In local mode, evaluation runs on the user's runner and the project says that policies and documents are not sent anywhere. source
- Supported inputs
- The project documents support for Terraform plans and state, Kubernetes manifests, Infracost breakdowns, and other JSON documents. source
Checked against the maker's pages on 7 Oct 2026.