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

Fix helm-vault secret decryption #759

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

bbetter173
Copy link
Contributor

@bbetter173 bbetter173 commented Jan 24, 2023

Fixes #758

  • helm-vault does not support outputting secrets to stdout, so useHelmOutput is set to false
  • helm-vault interpolates the environment variable name into the output file if one is specified, so an additional step of renaming the file to the expected name is added
  • helm-vault outputs the expected file by default (original file name with .dec appended) if no environment is specified. No changes required to handle this case other than settings useHelmOutput to false

Copy link
Collaborator

@luisdavim luisdavim left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@luisdavim luisdavim merged commit 44c2f37 into Praqma:master Jan 24, 2023
@bbetter173 bbetter173 deleted the bugfix/vaultEnvironment branch January 24, 2023 12:46
@bbetter173
Copy link
Contributor Author

@luisdavim - Is there any ETA on a release that will include this fix?

@luisdavim
Copy link
Collaborator

I can look into cutting a release today.

@bbetter173
Copy link
Contributor Author

Thanks mate

mkubaczyk pushed a commit that referenced this pull request Aug 18, 2023
Co-authored-by: Ben Bettridge <bbettridge@switch.tv>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vault decrypted secrets fail in various ways depending on version of helm-secrets installed
3 participants