rotate_vault_key
Rotate a vault secret's value to replace a compromised or expiring key, minting a new version with distinct audit trail for intentional rotation.
Instructions
Rotate a vault secret's value (POST /api/v1/vault/:env/:key/rotate).
Functionally a vault write that mints a new version, but recorded under a distinct audit action so the vault audit log distinguishes an intentional rotation (e.g. a leaked credential, scheduled key rotation) from a routine update. Use this when you're replacing a compromised or expiring secret; use set_vault_key for a first write or a normal value change.
After rotating, redeploy any app that references vault:/// so the new value is injected (the running container keeps the old value until its next deploy).
Requires INSTANODE_TOKEN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | Yes | Vault environment namespace of the existing secret (e.g. 'production'). | |
| key | Yes | Secret key name to rotate (e.g. 'DATABASE_URL'). | |
| value | Yes | The NEW secret value (≤1 MiB). Stored encrypted; never echoed back. |