sops_add_secrets
Add new secrets to an existing SOPS-encrypted file by decrypting, merging, and re-encrypting while preserving all values and rejecting duplicate keys.
Instructions
Add new secrets to an existing SOPS-encrypted file. Decrypts the file, merges in new secrets, and re-encrypts — preserving all existing values and metadata. Rejects keys that already exist in the file. Supports generated, external, and derived sources. Requires SOPS_AGE_KEY env var.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encrypted_content | Yes | Contents of an existing secrets.enc.yaml file | |
| secrets | Yes | New secrets to add |