hiera-eyaml icon indicating copy to clipboard operation
hiera-eyaml copied to clipboard

Request: Support recrypt with new keys

Open michalmiddleton opened this issue 6 years ago • 4 comments

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.

michalmiddleton avatar Feb 04 '19 21:02 michalmiddleton

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

vStone avatar Feb 19 '20 08:02 vStone

Hi.

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

Also I would also love to this feature implemented.

Yours David

dbk-rabel avatar Jan 06 '22 11:01 dbk-rabel

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

michalmiddleton avatar Jan 06 '22 16:01 michalmiddleton

Thank you very much @michalmiddleton !

dbk-rabel avatar Jan 06 '22 16:01 dbk-rabel