Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
/ stein Public archive

A linter for config files with a customizable rule set


Notifications You must be signed in to change notification settings


Repository files navigation


2021-02-24 Currently opa testing framework is better than this approach. Please do not use this project except for HCL lovers.

test release docs

Stein is a linter for config files with a customizable rule set. Supported config file types are JSON, YAML and HCL for now.

The basic design of this tool are heavily inspired by HashiCorp Sentinel and its lots of implementations come from Terraform.


As the motivation of this tool, the factor which accounts for the most of them is the Policy as Code.

Thanks to Infrastructure as Code, the number of cases that the configurations of its infrastructure are described as code is increasing day by day. Then, it became necessary to set the lint or policy for the config files. As an example: the namespace of Kubernetes to be deployed, the number of replicas of Pods, the naming convention of a namespace, etc.

This tool makes it possible to describe those requests as code (called as the rules).


Stein Documentations