babarot
stein
Go

A linter for config files with a customizable rule set

Last updated Oct 20, 2023
97
Stars
15
Forks
0
Issues
0
Stars/day
Attention Score
13
Language breakdown
Go 94.2%
HCL 4.1%
Makefile 1.6%
Shell 0.1%
Files click to expand
README

stein =====

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

[test][test] [release][release] [docs][docs]

[test]: https://github.com/b4b4r07/stein/actions?query=workflow%3Atest [release]: https://github.com/b4b4r07/stein/actions?query=workflow%3Arelease [docs]: https://github.com/b4b4r07/stein/actions?query=workflow%3Adocs

[![][release-badge]][release-link] [![][license-badge]][license-link] [![][report-badge]][report-link] [![][go-version-badge]][go-version-link] [![][website-badge]][website-link]

[release-badge]: https://img.shields.io/github/release/b4b4r07/stein.svg?style=popout [release-link]: https://github.com/b4b4r07/stein/releases

[license-badge]: https://img.shields.io/github/license/b4b4r07/stein.svg?style=popout [license-link]: https://b4b4r07.mit-license.org

[report-badge]: https://goreportcard.com/badge/github.com/b4b4r07/stein [report-link]: https://goreportcard.com/report/github.com/b4b4r07/stein

[go-version-badge]: https://img.shields.io/github/go-mod/go-version/b4b4r07/stein [go-version-link]: https://github.com/b4b4r07/stein/blob/master/go.mod

[website-badge]: https://img.shields.io/website?downcolor=lightgrey&downmessage=down&upcolor=green&upmessage=up&url=https%3A%2F%2Fbabarot.me%2Fstein [website-link]: https://babarot.me/stein

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.

Motivation

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).

Documentations

[Stein Documentations][website-link]

🔗 More in this category

© 2026 GitRepoTrend · babarot/stein · Updated daily from GitHub