sops_rename_secret
Rename a key in a SOPS-encrypted file, preserving its value, source type, and metadata, and update 'from' references in derived secrets that depend on the renamed key.
Instructions
Rename a key in an existing SOPS-encrypted file. Preserves the value, source type, and metadata. Updates 'from' references in any derived secrets that depend on the renamed key. Requires SOPS_AGE_KEY env var.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | New key name (must match ^[A-Z][A-Z0-9_]*$ and not collide with an existing key) | |
| old_name | Yes | Current key name | |
| encrypted_content | Yes | Contents of an existing secrets.enc.yaml file |