Rotate the encryption key
POST/encryption/rotate-key
Replaces the ENCRYPTION_KEY kept in the data folder's .env file, re-wraps every user's data key and re-seals every stored secret with the new key. Sessions stay valid. Refused when ENCRYPTION_KEY is set through the environment or ENCRYPTION_KEY_FILE; use ENCRYPTION_KEY_PREVIOUS there. Admin only.
Responses
- 200
- 409
- 500
Key rotated, with counts of what moved.
The key is set outside .env and must be rotated there.
Failed to rotate the key.