sops_rekey
Re-encrypt a SOPS secrets file onto a domain's current recipient list after recipient changes, updating the recorded domain and clearing recipient mismatch errors.
Instructions
Re-encrypt a SOPS file onto the current recipient list of the named domain, updating its recorded domain. This is the tool to run after a domain's recipients change, and the way to clear the 'recipients do not match' refusal from the other mutation tools. It changes who can read the file, so 'domain' is required rather than inferred. Requires a private key for that domain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Required. The domain whose current recipient list the file is re-encrypted to. This changes who can read the file, so it is never inferred from the file or defaulted. Call sops_list_domains to see the options. | |
| encrypted_content | Yes | Contents of a secrets.enc.yaml file |