HoustonPutman opened a new pull request, #924:
URL: https://github.com/apache/solr-operator/pull/924

   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:
   - Helm never fetches or checks `index.yaml.asc` or `index.yaml.sha512`.
   - What `helm install --verify` checks is each chart's `.prov` file, signed 
by the release manager and pushed to ghcr.io with the chart.
   - Changes to the index go through reviewed commits to solr-site.
   
   Signing also tied every index update to a release manager's GPG key.
   
   - `update_helm_index.sh` no longer signs the index or writes its checksum, 
and drops its `-g` and `-n` options.
   - The release wizard's `website_update_helm_index` step no longer passes a 
GPG key or asks for a passphrase. `test_oci_index.sh` no longer passes `-n`.
   - `dev-docs/helm-repository.md` explains why the index isn't signed.
   
   `update_helm_index.sh` now 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, plus 
`generated`.
   
   ## 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/changes` ends 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.1 `solr-operator` charts 
(fixed in the index in solr-site#260). `make check-helm`, and so `make lint`, 
now fails if a line in `helm/*/Chart.yaml` ends in whitespace. Both charts pass 
today.
   
   ## Testing
   
   - `update_helm_index.sh -d` against solr-site#260's index, with a locally 
packaged `solr` 0.10.0 chart:
     - Adding it changed only the new entry's lines and `generated`.
     - Re-running replaced the entry in place, kept its `created` timestamp, 
and changed only `generated`.
     - No `.asc` or `.sha512` was written.
   - The wizard step renders without `-g`.
   - The Chart.yaml check passes on the current charts, and fails, naming the 
line, when a trailing space is added. `make -n check-helm` shows Make expands 
the recipe as intended.
   - Not run: `test_oci_index.sh` and the Artifact Hub part of `check-helm`, 
which both need Docker.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to