Skip to the content.

Helm

Add the proxy as a chart repository, or pull OCI charts through its registry endpoint. The examples use the upstream names podinfo (a classic chart repository) and helm-oci (an OCI registry of charts); replace them with the names your operator gave the upstreams (what you need).

   
Upstream type helm
Package source https://proxy.example.com/v1/podinfo (classic) · oci://proxy.example.com/helm-oci/<repository> (OCI)
Clients helm
Tested helm 3.16: in CI on every push (classic repository) and in the client lab (classic and OCI).

Configure

A classic chart repository

One upstream fronts one chart repository; add it under any local name:

helm repo add podinfo https://proxy.example.com/v1/podinfo --ca-file /etc/ssl/corp-ca.pem
helm repo update
helm pull podinfo/podinfo --version 6.7.1

(--ca-file is needed only with a private CA; Helm stores it with the repository.) Chart archives come back through the proxy even when the repository’s index points somewhere else (a release asset on another host, an oci:// reference): the proxy rewrites every chart URL in the index.yaml it serves.

An OCI registry of charts

OCI charts are pulled through the proxy’s host-root registry endpoint, like container images: oci://<proxy>/<upstream>/<repository>.

helm pull oci://proxy.example.com/helm-oci/stefanprodan/charts/podinfo --version 6.7.1 \
    --ca-file /etc/ssl/corp-ca.pem --destination oci

(--ca-file is needed only with a private CA.)

Authenticate

Only when the proxy has access control switched on.

Classic repository — the proxy takes your proxy token as the password of HTTP Basic authentication, with any user name. Helm stores both with the repository and sends them for the index and the charts:

helm repo add podinfo https://proxy.example.com/v1/podinfo --ca-file /etc/ssl/corp-ca.pem \
    --username pullthrough --password "<token>"

OCI charts — log in to the proxy’s registry once. The proxy challenges a registry client with HTTP Basic, and Helm answers with what helm registry login stored:

echo "<token>" | helm registry login proxy.example.com --username pullthrough --password-stdin \
    --ca-file /etc/ssl/corp-ca.pem

Trust a private CA

--ca-file: stored with the repository by helm repo add, and given to every OCI command (as in the helm pull oci://… command above):

helm repo add podinfo https://proxy.example.com/v1/podinfo --ca-file /etc/ssl/corp-ca.pem

Check that it works

helm repo update
helm pull podinfo/podinfo --version 6.7.1

helm repo list shows the address each repository was added under.

Good to know

On the proxy

upstreams:
  podinfo:
    type: helm
    url: https://stefanprodan.github.io/podinfo
  helm-oci:
    type: helm
    url: https://ghcr.io
    settings:
      oci: "true"

url of a classic upstream is the repository root that serves index.yaml. Chart archives are verified against the SHA-256 the index publishes and cached immutably; with settings.oci: "true" the upstream is an OCI registry, served at the proxy’s host root like a docker upstream. Details: backends: helm.