Skip to content

Serve the Solr Operator Helm repository index from the site - #260

Merged
HoustonPutman merged 7 commits into
apache:mainfrom
HoustonPutman:helm-oci-index
Dec 1, 2026
Merged

HoustonPutman merged 7 commits into
apache:mainfrom
HoustonPutman:helm-oci-index

Conversation

@HoustonPutman

@HoustonPutman HoustonPutman commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Companion to apache/solr-operator#900.

The Solr Operator Helm charts are moving to OCI artifacts on ghcr.io/apache/solr-operator/helm. Instead of redirecting /charts to nightlies.apache.org, this serves the Helm repository index from content/charts/index.yaml. Its entries point at the OCI copies of the charts (oci://ghcr.io/apache/solr-operator/helm/<chart>:<version>), so no tarballs are hosted on the site. helm repo add apache-solr https://solr.apache.org/charts keeps working; Helm 3.8+ is required, and Helm 3.8.2 / 3.19.0 / 4.3.1 have been tested against such an index.

Changes

  • htaccess.template
    • Removes the wholesale /charts redirect to nightlies.
    • Gives /charts/index.yaml a short Cache-Control, so a new release shows up soon after publishing.
    • Keeps redirecting the old relative tarball urls (/charts/*.tgz[.prov|.asc|.sha512]) to nightlies, for clients with a cached older index.
  • content/charts/artifacthub-repo.yml: the Artifact Hub repository metadata (repository ID and owners), which Artifact Hub reads from the root of the Helm repository. Nightlies used to serve it through the old /charts redirect.
  • content/pages/operator/resources.md: adds install instructions for the Helm repository and for the direct oci:// route.

Draft: before this can merge

The index isn't signed. Helm never checks a signature on a repository index. What helm install --verify checks is each chart's .prov file, which is pushed to ghcr.io with the chart.

The Solr Operator Helm charts are moving to OCI artifacts on ghcr.io. Instead of
redirecting /charts to nightlies.apache.org, serve the Helm repository index from
content/charts/index.yaml. Its entries point at the OCI copies of the charts, so
no tarballs are hosted here.

Requests for the old relative tarball urls (/charts/*.tgz) still redirect to
nightlies, for clients with a cached copy of an older index.
A verbatim copy of
https://nightlies.apache.org/solr/release/helm-charts/index.yaml, which
/charts redirected to until now. Its relative tarball urls keep
resolving through the /charts/*.tgz redirect to nightlies.
Every entry's url now points at its OCI copy,
oci://ghcr.io/apache/solr-operator/helm/<chart>:<version>, instead of a
relative tarball url. Everything else, including the digests and created
timestamps, is unchanged, since the OCI copies are byte-identical to the
released charts.

The file is written the way update_helm_index.sh from the solr-operator
repository writes it, with yq, so later updates only show real changes.
That is also why 16 long strings that Helm had wrapped at 80 columns are
now on one line each, with the same values.

This assumes every chart version in the index has been published to
ghcr.io.
The Helm repository index is no longer signed, so there is no
index.yaml.asc or index.yaml.sha512 to serve. Helm never checks a
signature on a repository index; the charts' own .prov files, pushed to
ghcr.io with the charts, are what 'helm install --verify' checks.
The artifacthub.io/changes changelogs of the v0.7.0 and v0.8.1
solr-operator charts each had a line ending in whitespace. A YAML block
scalar cannot hold that, so they were the only changelogs in the index
written as long double-quoted strings. With the trailing whitespace
removed, they are written as blocks like every other changelog.

This only changes the index's copy of the chart metadata. The released
charts, and so the digests, are unchanged. The solr-operator lint now
checks the charts' Chart.yaml files for trailing whitespace, so it does
not come back with new releases.
The v0.2.6 to v0.2.8 solr-operator charts were released before the
project was donated to Apache. They were never Apache releases and have
no archive.apache.org copy to verify them against, so they are not
published to the OCI registry, and are dropped from the index. Clients
with a cached copy of the old index can still download them, through
the /charts/*.tgz redirect to nightlies.apache.org.
Artifact Hub reads artifacthub-repo.yml from the root of the Helm
repository, https://solr.apache.org/charts. Until now /charts redirected
to nightlies.apache.org, which served it. Now that the site serves the
Helm repository itself, it serves this file too, with the same
repository ID and owners as the copy on nightlies.
@HoustonPutman
HoustonPutman merged commit caba661 into apache:main Dec 1, 2026
1 check passed
@HoustonPutman
HoustonPutman deleted the helm-oci-index branch December 1, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant