Skip to content

support reading signing passphrase from file or stdin#8394

Merged
technosophos merged 1 commit into
helm:masterfrom
sdorra:master
Sep 18, 2020
Merged

support reading signing passphrase from file or stdin#8394
technosophos merged 1 commit into
helm:masterfrom
sdorra:master

Conversation

@sdorra

@sdorra sdorra commented Jul 3, 2020

Copy link
Copy Markdown
Contributor

Signed-off-by: Sebastian Sdorra [email protected]

closes #8210

What this PR does / why we need it:

In helm v2 we had the HELM_KEY_PASSPHRASE environment variable to pass the passphrase within a ci process, but in helm v3 we have no way to pass the passphrase without user interaction.

So this pr will add support for reading the signing passphrase from file or stdin e.g.:

echo secret > secret.txt
helm package --sign --key mykey --keyring secring.gpg --passphrase-file secret.txt my-chart
# or
echo secret | helm package --sign --key mykey --keyring secring.gpg --passphrase-file "-" my-chart

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

@helm-bot helm-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 3, 2020

@bacongobbler bacongobbler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code LGTM, though it'll need another maintainer to approve before merging.

@sdorra

sdorra commented Jul 31, 2020

Copy link
Copy Markdown
Contributor Author

@bacongobbler Is there something i can do to speed things up?

@Lukkie

Lukkie commented Aug 6, 2020

Copy link
Copy Markdown

I also need this for my helm chart build pipeline. Would be nice if it could be merged sometime soon.

@fcrespofastly

Copy link
Copy Markdown

Any chance this gets reviewed by someone else @bacongobbler ? We're willing to use this in our build pipelines too

@bacongobbler

Copy link
Copy Markdown
Member

Feel free to reach out to the other core maintainers.

@dkulchinsky

Copy link
Copy Markdown

Thanks for replying @bacongobbler! but the list of maintainers in OWNERS is quite long, not sure who we should tag here? could you help us figure out who could help us here?

We desperately need this feature for our CI pipeline since we need to sign the charts to generate a provenance file.

@sdorra

sdorra commented Sep 16, 2020

Copy link
Copy Markdown
Contributor Author

It looks like a large part of the GPG code was written by technosophos.

@sdorra

sdorra commented Sep 16, 2020

Copy link
Copy Markdown
Contributor Author

Hey @technosophos could you help us with this pr?

@technosophos

Copy link
Copy Markdown
Member

I will be reviewing it today or tomorrow.

@technosophos technosophos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@technosophos technosophos added this to the 3.4.0 milestone Sep 18, 2020
@technosophos

Copy link
Copy Markdown
Member

Added this to 3.4.0 since it is a new feature.

@technosophos technosophos merged commit 467bd49 into helm:master Sep 18, 2020
vladfr pushed a commit to vladfr/helm that referenced this pull request Sep 30, 2020
zak905 pushed a commit to zak905/helm that referenced this pull request Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use of HELM_KEY_PASSPHRASE to pass passphrase to helm package

7 participants