sops icon indicating copy to clipboard operation
sops copied to clipboard

Ability extract sub-part of the document tree with exec-file and exec-env

Open mikonieminen opened this issue 2 years ago • 1 comments

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 {}"

mikonieminen avatar Jul 26 '22 11:07 mikonieminen

Seem that implementing this was quite easy, so I've created PR for it: https://github.com/mozilla/sops/pull/1098

mikonieminen avatar Jul 27 '22 13:07 mikonieminen