Skip to content

Fix helm-vault secret decryption#759

Merged
luisdavim merged 1 commit intomkubaczyk:masterfrom
bbetter173:bugfix/vaultEnvironment
Jan 24, 2023
Merged

Fix helm-vault secret decryption#759
luisdavim merged 1 commit intomkubaczyk:masterfrom
bbetter173:bugfix/vaultEnvironment

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 mkubaczyk: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