sops_rename_secret
Rename a key in a SOPS-encrypted file while preserving its value and metadata. Automatically updates dependent references in derived secrets.
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 |
|---|---|---|---|
| encrypted_content | Yes | Contents of an existing secrets.enc.yaml file | |
| old_name | Yes | Current key name | |
| new_name | Yes | New key name (must match ^[A-Z][A-Z0-9_]*$ and not collide with an existing key) |