Skip to content

[Feature Request] Global remote keyservice configuration #1918

Closed

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!

Activity

  1. felixfontein commented on Aug 30, 2025

    @felixfontein
    Contributor

    I created a PR for this #1930. PTAL!

  2. RussellAult commented on Sep 1, 2025

    @RussellAult
    ContributorAuthor

    Thanks @felixfontein !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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