lukasjarosch / skipper

Inventory based templated configuration library inspired by the kapitan project
https://lukasjarosch.github.io/skipper/
MIT License
11 stars 3 forks source link

feat: save public key or its ID to secretFileData #76

Closed alxndr13 closed 6 months ago

alxndr13 commented 6 months ago

In our Project where we use skipper, we want to implement a feature where re-encryption of secrets is possible using a single command.

In our best-case scenario, we want to be able to replace the key in the inventory and let our project's CLI do the rest. But this means we have to know which was the OLD key and which is the NEW one, we want to re-encrypt our secrets with.

This change saves the "Public Key" (there's no such driver as of this PR, which uses a public key) or a Key Identifier (azurekv) to enable skipper to know which secret got encrypted with which key.

alxndr13 commented 6 months ago

@lukasjarosch PR is now ready, PTAL.