hiera-eyaml
hiera-eyaml copied to clipboard
Request: Support recrypt with new keys
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.
On a side note: I resolved this by converting to plaintext (hiera-eyaml-plaintext) first and then to the new encryption method.
Hi.
Could you elaborate a little more, how you did resolve this?
Also I would also love to this feature implemented.
Yours David
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
Thank you very much @michalmiddleton !