sops
sops copied to clipboard
Ability extract sub-part of the document tree with exec-file and exec-env
While decrypt
allows me to extract sub-part of the document tree, I cannot do this with exec-file
or exec-env
.
Having ability to do this would be very useful.
I would expect something like the following to work:
sops exec-file --output-type json --extract '["server"]["privatekey"]' secrets.yaml "yarn start --private-key {}"
Seem that implementing this was quite easy, so I've created PR for it: https://github.com/mozilla/sops/pull/1098