Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signing Helm packages #175

Merged
merged 8 commits into from
Feb 4, 2025
Merged

Signing Helm packages #175

merged 8 commits into from
Feb 4, 2025

Conversation

didierofrivia
Copy link
Member

Part of the work needed for Kuadrant/helm-charts#18

This PR introduces the GPG signing of Helm chart packages upon creation. It also uploads its provenance file to the GH release page.

The job now requires to be passed an environment variable GPG_KEYRING_BASE64 which represents the GPG keyring base64 encoded, in order to be stored as a GH action variable.

@codecov-commenter
Copy link

codecov-commenter commented Jan 30, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.47%. Comparing base (92de465) to head (8abbb03).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #175      +/-   ##
==========================================
- Coverage   84.04%   82.47%   -1.58%     
==========================================
  Files          18       18              
  Lines        1210     1210              
==========================================
- Hits         1017      998      -19     
- Misses        147      160      +13     
- Partials       46       52       +6     
Flag Coverage Δ
integration 76.03% <ø> (-2.40%) ⬇️
unit 64.23% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
api/v1alpha1 (u) 100.00% <ø> (ø)
pkg/helpers (u) 83.78% <ø> (ø)
pkg/log (u) 93.18% <ø> (ø)
pkg/reconcilers (u) 73.26% <ø> (ø)
pkg/limitador (u) 97.65% <ø> (ø)
controllers (i) 71.24% <ø> (-4.84%) ⬇️
pkg/upgrades ∅ <ø> (∅)

see 2 files with indirect coverage changes

@didierofrivia didierofrivia marked this pull request as ready for review January 31, 2025 11:32
@didierofrivia didierofrivia self-assigned this Jan 31, 2025
@didierofrivia didierofrivia added the kind/enhancement New feature or request label Jan 31, 2025
@didierofrivia didierofrivia requested a review from a team January 31, 2025 11:32
* Needs an extra step because svenstaro/upload-release-action@v2 doesn't
  support asset naming on file_glob

Signed-off-by: dd di cesare <[email protected]>
* One should import the keyring first for signing the package

Signed-off-by: dd di cesare <[email protected]>
@didierofrivia didierofrivia requested a review from eguzki February 3, 2025 13:53
eguzki
eguzki previously approved these changes Feb 4, 2025
* the GnuPG v2 store the secret keyring using the format kbx and Helm
  works with the legacy gpg format.
* Enclosing within quotes to fix env interpolation

Signed-off-by: dd di cesare <[email protected]>
@didierofrivia didierofrivia added this pull request to the merge queue Feb 4, 2025
Merged via the queue into main with commit 6eff3b2 Feb 4, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants