Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

KubeLinter

$ kube-linter Official Low Risk
StackRox · Cloud & Infra · Apache-2.0 · macos / linux / windows

StackRox's kube-linter statically analyzes Kubernetes manifests and Helm charts for security misconfigurations and production reliability issues (missing resource limits, root containers, privilege escalation). Supports --format json, --format sarif, and custom .kube-linter.yaml policies.

FCRS-1.0 Score
90 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install kube-linter
CLI vs MCP Decision CLI Preferred vs MCP

kube-linter lint --format json provides instant local security/reliability checks over repo files with zero network or MCP overhead.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Supports --format json, --format sarif, checks list --format json introspection, and non-zero exit codes when lint violations occur.

  • Supports --format json and --output on lint and checks list
  • Non-interactive static analyzer with deterministic exit codes
Trust & Safety 25 / 25

Strictly read-only offline static analyzer requiring zero credentials and making zero network or cluster changes.

  • 100% offline read-only static analysis
Setup & Portability 15 / 15

Single static Go binary via Homebrew, go install, and GitHub releases across macOS, Linux, and Windows.

  • Static Go binary via brew install kube-linter
Utility & Efficiency 12 / 15

Complements schema validators like kubeconform by catching Pod security and operational best-practice gaps before deployment.

  • Supports raw YAML, Kustomize directories, and Helm charts natively
Maintenance & Lineage 8 / 10

Official StackRox / Red Hat ACS open-source project (stackrox/kube-linter) under Apache-2.0.

  • Apache-2.0 stackrox/kube-linter repository
Docs & Verifiability 8 / 10

Clear documentation at docs.kubelinter.io cataloging every check and configuration option.

  • Published reference at docs.kubelinter.io

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No authentication required; operates 100% offline on local YAML manifests and Helm charts.

Side Effects
Read-Only
Cost & Quotas

Apache-2.0 open-source CLI; 100% free offline analysis.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# KubeLinter Agent Rules
- Run `kube-linter lint <path> --format json` after authoring or modifying Kubernetes deployments or Helm charts.
- Fix high-severity security findings (non-root user, read-only rootfs, resource limits) rather than silencing checks blindly.

Agent-Ready Command Recipes

Safe Read-Only Queries

Lint Kubernetes manifests with JSON report output
kube-linter lint ./k8s/ --format json

Evaluates built-in security and reliability checks and returns structured JSON findings.

List all available built-in lint checks
kube-linter checks list --format json

Self-describes available check names and descriptions in JSON.

Strengths for Agents

  • + Both lint and checks list support --format json cleanly.
  • + Purely offline, read-only static security and reliability scanner for YAML and Helm charts.
  • + Fast static Go binary with zero runtime dependencies.

Caveats & Pitfalls

  • ! Exits with non-zero status code when lint issues are found—agents should treat non-zero exit as findings to parse rather than a crash.
  • ! Some default checks (e.g. read-only-root-fs) may require repo-specific .kube-linter.yaml tuning.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI