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

Request: Support recrypt with new keys #277

Open
michalmiddleton opened this issue Feb 4, 2019 · 4 comments
Open

Request: Support recrypt with new keys #277

michalmiddleton opened this issue Feb 4, 2019 · 4 comments

Comments

@michalmiddleton
Copy link

I'd like to be able easily re-encrypt EYAML in my hiera files with a new key pair.
Current feature recrypt only re-encrypts with the same keys.

@vStone
Copy link

vStone commented Feb 19, 2020

On a side note: I resolved this by converting to plaintext (hiera-eyaml-plaintext) first and then to the new encryption method.

@dbk-rabel
Copy link

Hi.

Could you elaborate a little more, how you did resolve this?

Also I would also love to this feature implemented.

Yours
David

@michalmiddleton
Copy link
Author

Hi @dbk-rabel , I can share my script that I used to re-encrypt my hiera. Please note, it's a quick hack put together and it only supports secrets encrypted on a single line (ie no heredoc / block). I uploaded it here https://github.com/michalmiddleton/hiera-re-encrypt

@dbk-rabel
Copy link

Thank you very much @michalmiddleton !

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

No branches or pull requests

3 participants