fix(selfhost): build chart dependencies with no helm repo add (sessions-pipeline 0.8.60, agent-relay 0.7.83)

Merged
KH
8d ago
+149-45

Problem

A customer following the public EKS guide from a git checkout hits this at step 11 on a fresh machine:

$ helm dependency build charts/sessions-pipeline
Error: no repository definition for https://cloudnative-pg.github.io/charts, https://charts.min.io/, https://open-telemetry.github.io/opentelemetry-helm-charts. Please add the missing repos via 'helm repo add'

charts/sessions-pipeline pulls three third-party charts from https repositories, and helm dependency build only resolves an https repository that has been registered with helm repo add. The guide never registers them.

Change

DependencyBeforeAfterWhy
cluster 0.9.0 (hoopdb)https://cloudnative-pg.github.io/chartsoci://ghcr.io/cloudnative-pg/chartsPublished there at 0.9.0. Helm pulls OCI without a repository entry.
opentelemetry-collector 0.178.0 (otel)https://open-telemetry.github.io/opentelemetry-helm-chartsoci://ghcr.io/open-telemetry/opentelemetry-helm-chartsPublished there at 0.178.0.
minio 5.4.0 (session-object-storage)https://charts.min.io/unchangedMinIO publishes no OCI chart: ghcr.io/minio/charts/minio:5.4.0 is not found and quay.io returns 401.

Because MinIO stays on https, the new scripts/selfhost/helm-deps.sh registers the https repositories the lock files name in a throwaway repository config and cache, then runs helm dependency build for charts/sessions-pipeline and then charts/agent-relay. It never reads or changes the caller's Helm repositories. I didn't vendor the MinIO chart into the repo because it is AGPL-3.0, and that's a licensing decision for a person to make.

Same versions, same content: the OCI archives are byte-identical to the https ones. Their SHA-256 values match the ones already in THIRD_PARTY_NOTICES.md: cluster 95b23ee4…, otel 9886a0cd…, minio 25fa2740…. helm template output is identical to main for the EKS install values (values-eks.yaml + values-eks-native.yaml + examples/aws/values.yaml), for the GCP proof values, and for every charts/sessions-pipeline/ci/*-values.yaml.

Also in this PR:

  • Version bumps for the chart gate: sessions-pipeline 0.8.60 and agent-relay 0.7.83. Both Chart.lock files are regenerated with Helm v4.3.1, the CI version. The requirements registry and the generated doc are updated.
  • The customer handoff ships the script (REQUIRED_FILES). ci/customer-handoff/smoke.sh now builds the extracted charts through the script against an empty repository config, so CI covers the fresh-machine path.
  • Customer-facing docs now use the script: examples/aws/README.md (with a note for older tags that don't have it), docs/handoff/HUMAN_QUICKSTART.md, docs/gcp-install/0-START-HERE.md, charts/agent-relay/README.md, the configure-rds.sh hint, scripts/selfhost/README.md and deps/PINS.md.
  • CI's own helm repo add steps (lint, fast-path, release, smoke tests) are unchanged. They still work, and they're also needed for the CNPG operator chart and deps.sh.

Proof (clean room, no helm repo add)

Run with an empty HELM_REPOSITORY_CONFIG, with HELM_REPOSITORY_CACHE, HELM_CACHE_HOME, HELM_CONFIG_HOME and HELM_DATA_HOME in temp dirs, and with charts/*/charts/ removed:

$ helm version --short
v4.3.1+gc0d08d0
$ helm dependency build charts/sessions-pipeline      # bare, for contrast
Error: no repository definition for https://charts.min.io/. Please add the missing repos via 'helm repo add'
$ scripts/selfhost/helm-deps.sh
Downloading cluster from repo oci://ghcr.io/cloudnative-pg/charts
Pulled: ghcr.io/cloudnative-pg/charts/cluster:0.9.0
Downloading minio from repo https://charts.min.io/
Downloading opentelemetry-collector from repo oci://ghcr.io/open-telemetry/opentelemetry-helm-charts
Pulled: ghcr.io/open-telemetry/opentelemetry-helm-charts/opentelemetry-collector:0.178.0
Saving 12 charts
exit=0
$ wc -c < $HELM_REPOSITORY_CONFIG      # untouched
0
$ helm template agent-relay charts/agent-relay -n agent-relay -f charts/agent-relay/values-eks.yaml -f charts/agent-relay/values-eks-native.yaml -f examples/aws/values.yaml
exit=0 (34 manifests)
$ git status --short charts             # lock files unchanged

The same results with Helm v3.19.0 (the EKS guide requires Helm 3) and v4.1.1.

Follow-up

  • AgentWorkforce/agentrelay.com#339 switches Install on EKS step 11 to this script. It needs this PR merged and a release tag that contains it, because the guide pins infra agent-relay-2026.11.16.
  • .agents/skills/setting-up-self-hosted-agent-relay-gcp/SKILL.md still runs bare helm dependency build in the repository layout. I left it unchanged, because the packaged layout it mostly uses already includes the dependencies.

🤖 Generated with Claude Code