Repository navigation
Stop signing the Helm repository index, and lint Chart.yaml for trailing whitespace - #924
Merged
Merged
Conversation
The index now lives in solr-site, as website content, rather than next to the release artifacts. Helm never checks a signature on a repository index, so index.yaml.asc and index.yaml.sha512 protected nobody, and tied every index update to a release manager's GPG key. What 'helm install --verify' checks is each chart's .prov file, which is pushed to the OCI registry with the chart. update_helm_index.sh drops its -g and -n options and no longer signs the index. It also writes the index the way Helm does, with lists not indented under their keys, so that adding a release only changes the lines of the new entries instead of re-indenting the whole file.
A line in a YAML block scalar cannot end in whitespace, so when a changelog line in a Chart.yaml's artifacthub.io/changes annotation ends in a space, Helm writes the whole annotation into the Helm repository index as a long double-quoted string instead of as a block. That is what happened to the v0.7.0 and v0.8.1 solr-operator charts. 'make check-helm' now fails if a line in either Chart.yaml ends in whitespace.
5 of 6 tasks
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The review identifies no active issues with the Helm repository maintenance changes.
No open issues 🎉
What changed in this PR
Simplifies maintenance of the website-hosted Helm repository index while preserving chart provenance verification.
Changes:
- Removes index signing and checksum generation, updating callers and documentation.
- Matches Helm’s list indentation to reduce index diffs.
- Adds trailing-whitespace checks for chart metadata to
make check-helm.
| File | Description |
|---|---|
Makefile |
Rejects trailing whitespace in chart metadata. |
hack/release/wizard/releaseWizard.yaml |
Removes index-signing arguments and passphrase instructions. |
hack/release/upload/update_helm_index.sh |
Removes signing and uses Helm-compatible list indentation. |
hack/release/smoke_test/test_oci_index.sh |
Removes the obsolete -n option. |
dev-docs/helm-repository.md |
Documents unsigned index maintenance and formatting. |
Review effort: Balanced
janhoy
approved these changes
Dec 1, 2026
HoustonPutman
added a commit
that referenced
this pull request
Dec 2, 2026
…ing whitespace (#924) * Stop signing the Helm repository index The index now lives in solr-site, as website content, rather than next to the release artifacts. Helm never checks a signature on a repository index, so index.yaml.asc and index.yaml.sha512 protected nobody, and tied every index update to a release manager's GPG key. What 'helm install --verify' checks is each chart's .prov file, which is pushed to the OCI registry with the chart. update_helm_index.sh drops its -g and -n options and no longer signs the index. It also writes the index the way Helm does, with lists not indented under their keys, so that adding a release only changes the lines of the new entries instead of re-indenting the whole file. * Check the Helm charts' Chart.yaml files for trailing whitespace A line in a YAML block scalar cannot end in whitespace, so when a changelog line in a Chart.yaml's artifacthub.io/changes annotation ends in a space, Helm writes the whole annotation into the Helm repository index as a long double-quoted string instead of as a block. That is what happened to the v0.7.0 and v0.8.1 solr-operator charts. 'make check-helm' now fails if a line in either Chart.yaml ends in whitespace.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-ups to #900, for the Helm repository index that apache/solr-site#260 serves from the website.
Stop signing the Helm repository index
The index now lives in solr-site as website content, rather than next to the release artifacts. Its signature protected nobody:
index.yaml.ascorindex.yaml.sha512.helm install --verifychecks is each chart's.provfile, signed by the release manager and pushed to ghcr.io with the chart.Signing also tied every index update to a release manager's GPG key.
update_helm_index.shno longer signs the index or writes its checksum, and drops its-gand-noptions.website_update_helm_indexstep no longer passes a GPG key or asks for a passphrase.test_oci_index.shno longer passes-n.dev-docs/helm-repository.mdexplains why the index isn't signed.update_helm_index.shnow also writes the index the way Helm does, with lists not indented under their keys (yq's--yaml-compact-seq-indent). Previously the first release after the switch would have re-indented the whole file, which is about 6,000 changed lines for solr-site#260's index. Run against that index, adding a chart now changes only the lines of the new entry, plusgenerated.Lint the charts' Chart.yaml for trailing whitespace
A YAML block scalar can't hold a line that ends in whitespace. When a changelog line in
artifacthub.io/changesends in a space, Helm writes the whole annotation into the index as a long double-quoted string instead of a block. That's what happened to the v0.7.0 and v0.8.1solr-operatorcharts (fixed in the index in solr-site#260).make check-helm, and somake lint, now fails if a line inhelm/*/Chart.yamlends in whitespace. Both charts pass today.Testing
update_helm_index.sh -dagainst solr-site#260's index, with a locally packagedsolr0.10.0 chart:generated.createdtimestamp, and changed onlygenerated..ascor.sha512was written.-g.make -n check-helmshows Make expands the recipe as intended.test_oci_index.shand the Artifact Hub part ofcheck-helm, which both need Docker.