Skip to content

[Feature Request] Global remote keyservice configuration #1918

@RussellAult

Description

@RussellAult

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions