- Chart.yaml
- values.yaml
- README.md
- LICENSE
- templates (directory)
- charts (directory)
.tgz extension, which indicates that it is a tar archive compressed using gzip. You can extract this archive with any archive manager available on your platform, such as WinRAR, 7-Zip, or common Linux archive utilities. This single archive file neatly bundles all your chart files for easy distribution.
Before uploading your chart to a repository, it is strongly recommended that you sign it. Signing helps users verify the integrity and authenticity of the package.
Signing Your Helm Chart
When you download files from the internet, there is always a risk of tampering. By cryptographically signing your Helm chart, you assure your users that the package is genuine and has not been altered. Helm uses a private key held exclusively by the chart developer to generate a digital signature. This signature is then stored in a separate provenance file accompanying your chart archive.Generating Your GPG Keys
Start by generating a private key and its corresponding public key using GPG (GNU Privacy Guard). The following command quickly generates both keys:Packaging the Chart with a Signature
Now that your keys are ready, you can package your chart again, this time signing it with your GPG key. Use your key’s full name or the associated email, along with the path to your keyring file:.tgz) but also an additional file with the .tgz.prov extension. This provenance file holds important information, including:
- A SHA256 hash of the chart archive
- A PGP signature verifying the archive’s integrity
When uploading your chart to an online repository, always include both the
.tgz archive and the corresponding .tgz.prov provenance file.Verifying a Signed Helm Chart
To verify the integrity and authenticity of your signed chart, you can use the following commands. Note that an initial verification attempt might result in an error, because Helm expects the public key in the olderpubring.gpg format:
--verify parameter during chart installation. If verification fails, the chart installation process is aborted, ensuring that only trusted charts are installed.