-
Notifications
You must be signed in to change notification settings - Fork 994
Description
While most SOPS decryption operations require no configuration (beyond what is contained in the file being decrypted), decryption operations that use a remote keyservice are notable exception. This isn't an insurmountable problem when executing the sops command directly, but more and more software is starting to use SOPS internally, typically without being able to specify extra flags for the underlying sops command. While some software (e.g. Ansible's community.sops collection) does provide a way to configure a remote keyservice, there are other examples (e.g. Terragrunt's sops_decrypt_file function) that do not. Moreover, having to specify the --keyservice flag (often along with the --enable-local-keyservice=false flag) on every single sops invocation starts to get annoying (and defining an alias or just recipe feels like an anti-pattern, and often won't solve the internal-use issues described above).
Ideally, there'd be a way to configure a remote keyservice on a more global basis. It think even something as simple as SOPS_KEYSERVICE (etc.) environment variables would go a long way to making the remote keyservice functionality more consistently useful.
Thanks!