Interview Prep/DevSecOps/Supply Chain Security at Scale

How do you sign and verify Helm charts stored as OCI artifacts?

IntermediateProductionSupply Chain Security at Scale
Answer

Push the chart to an OCI registry, then sign its digest with Cosign like any image.

helm package ./chart
helm push api-1.8.0.tgz oci://ghcr.io/acme/charts
cosign sign --yes ghcr.io/acme/charts/api@sha256:abc...
cosign verify ghcr.io/acme/charts/api@sha256:abc... \
  --certificate-identity-regexp '^https://github.com/acme/' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

GitOps controllers can enforce it: Flux's OCIRepository supports spec.verify.provider: cosign; for Argo CD, verify in the pipeline that promotes the chart version.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply Chain Security at Scale