Skip to main content

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​

Key rotated, with counts of what moved.