sops icon indicating copy to clipboard operation
sops copied to clipboard

Feature request: Support decrypting multiple files at a time

Open patricknelson opened this issue 4 years ago • 10 comments

It would be awesome if sops supported decrypting multiple files at a time.

Use case: For example, say you have multiple encrypted Kubernetes secrets that you'd like to apply all at once, this could be streamlined as:

sops -d secrets/*.enc.yml | kubectl apply -f -

This would be much easier than having to manually specify each file individually, one at a time. This would also require that sops be able to concatenate each file using the --- document delimiter in the resulting YAML stream.

patricknelson avatar Sep 30 '21 02:09 patricknelson

Would be nice input and I am also looking forward to it. By the way any update here? Thanks

jaythamke avatar Nov 01 '21 14:11 jaythamke

Hello! This is something that would be really nice, for batch operations that include not just for applying on kubernetes. For example, searching en masse when almost all the infra is captured in IaC

narasimhan-coverwallet avatar Apr 12 '22 05:04 narasimhan-coverwallet

I agree, it would be very nice to have this feature !

LucasVanHaaren avatar Jun 17 '22 13:06 LucasVanHaaren

It would be very helpful to have the support for multiple files for sops exec-env as well. Currently, we have to nest multiple exec-env commands which is not very clean.

BlacCello avatar Aug 02 '22 11:08 BlacCello

OMG, I started to use SOPS 2 days before, and I think I'm arriving at the right place. +1 from my side! This will make the usage a lot easier especially when specifying decryption on my package.json script

beejei avatar Apr 13 '23 02:04 beejei

+1 as well, that would be awesome

CyberHippo avatar Jun 09 '23 08:06 CyberHippo

+1 that will be really helpful

fnayou avatar Apr 22 '24 21:04 fnayou