Helm chart security

From RedHatProductSecurity/prodsec-skills · View interactive version

Helm chart security is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. Secure Helm chart development, dependency management, and secret handling. Use when building, reviewing, or auditing Helm charts, values files, Chart.yaml dependencies, or Helm-based deployment pipelines.

How to use this skill

Skill file

Helm Chart Security

Risk Areas

| Risk | Description |

|---|---|

| Vulnerable dependencies | Charts include external libraries and base images that may contain known vulnerabilities |

| Unsecured values | Secrets stored as plaintext in values.yaml or checked into source control |

| Insecure configuration | Misconfigured RBAC, missing security contexts, permissive network policies |

| Supply chain attacks | Tampered or malicious chart versions pulled from untrusted repositories |

| Lack of visibility | Complex deployments without adequate logging and monitoring |

Dependency Management

Chart Provenance

Verifying Provenance

Helm supports cryptographic verification of chart packages. Provenance is not enabled by default when acquiring charts.

Charts Without Provenance

When upstream charts do not provide provenance, vendor the dependency to include its source directly in your project for scanning:

helm plugin install https://github.com/SecKatie/helm-vendor-plugin
helm vendor

This unpacks dependencies so they can be scanned by existing automated tooling (checkov, etc.).

Creating Provenance

Sign your chart releases using GPG:

helm generate-unsigned-provenance .
gpg --clearsign chart_name-x.y.z.tgz.prov
mv chart_name-x.y.z.tgz.prov.asc chart_name-x.y.z.tgz.prov
helm verify chart_name-x.y.z.tgz

Secure Configuration

Secure Defaults in values.yaml

Chart authors MUST provide secure defaults, not leave security configuration to users:

Infrastructure Security Scanning

Use checkov to detect misconfigurations in Helm templates and Kubernetes manifests. Output SARIF for integration with CI systems:

checkov -d . --framework helm -o sarif

Secret Management

Never store secrets in values.yaml or check them into source control.

Logging

Implementation Checklist

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.