Security and Supply Chain

Hardening charts and their distribution path: chart signing and provenance, RBAC scoping, secrets management with helm-secrets and External Secrets, and scanning charts and images.

Overview

Three areas of Helm security

Helm security covers three distinct areas. Each one fails differently, so each needs its own controls.

  • Supply chain: the chart that reaches production is the one that was tested and signed. The tested chart, the signed chart and the deployed chart must be the same chart.
  • Runtime: RBAC scoping and least privilege for Helm operators and for the workloads they deploy.
  • Secrets management: sensitive configuration stays out of plaintext YAML and out of Git.

The rest of this introduction takes the three in that order.

Key concepts

  • Provenance file (.prov)
  • Sigstore / helm-sigstore
  • RBAC minimum for Helm CI
  • External Secrets Operator (ESO)
  • helm-secrets + SOPS
  • Trivy for Helm

Interview questions

  • How do you sign a Helm chart and verify it at install time?
  • Describe three approaches to secrets management in Helm and their trade-offs.
  • What RBAC configuration does a Helm CI service account require, and why?
  • How do you scan a Helm chart for security misconfigurations in CI?
  • What are the supply chain security risks specific to using public Helm charts?
  • How does Helm 4's server-side apply affect security posture?

Sign up free to read the full topic

More DevOps topics

Start free on Cariara · Coding problems · System design studio