Static analysis for Kubernetes YAML files and Helm charts
open sourceApache-2.0self-hostablefree
KubeLinter is a static analysis tool that checks Kubernetes YAML files, Helm charts and Kustomize manifests against best practices, with a focus on production readiness and security: containers running as root, missing resource limits, images tagged latest, writable root filesystems and more. Each failed check comes with a remediation and a non-zero exit code, checks can be turned on and off or written as custom checks, and one run can write several report formats including SARIF and JSON. Created by StackRox and now backed by Red Hat; Apache-2.0, written in Go.
Ways to install
Package managers
Problems it solves
- catch Kubernetes manifests that run containers as root before they reach the cluster
- check our Helm charts for security misconfigurations in CI
- flag deployments that are missing CPU and memory limits
- stop people deploying container images tagged latest
- lint Kustomize output against production-readiness best practices
- write our own rules for what Kubernetes YAML is allowed in our organization
- upload Kubernetes config findings to GitHub code scanning as SARIF
- get a suggested fix for each problem found in my Kubernetes YAML
Features
- checks Kubernetes YAML, Helm charts and Kustomize manifests
- default checks for security and production readiness
- remediation advice for each finding
- enable, disable and custom checks
- several output formats in one run, including SARIF and JSON
- non-zero exit code on failures
- cosign-signed container images
- binaries for macOS, Linux and Windows
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what KubeLinter does.
- Checkov Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages
- Kubescape Open source Kubernetes security from development to runtime
- kubeconform A FAST Kubernetes manifests validator, with support for Custom Resources!
- Conftest Write tests against structured configuration data using the Open Policy Agent Rego query language