How should I protect encryption keys needed for server recovery?
Encrypted recovery data is useful only if authorised staff can obtain the correct decryption keys when needed. Protect keys from unauthorised access while ensuring they survive loss of the original server or account. Key rotation must preserve access to older data for as long as that data is retained.
Before you start
- An inventory of encrypted volumes, repositories and the keys or recovery credentials each requires.
Instructions
1. Map keys to protected data
Record which service manages each key, its identifier and the recovery points that depend on it. Include volume recovery keys, repository passwords and key-management access. Keep identifiers and procedures in the runbook, while storing secret values in the approved protected system.
2. Arrange controlled emergency access
Define who can retrieve a key, how their identity is verified and what happens if normal sign-in is unavailable. Avoid keeping the only recovery key on the encrypted server itself. Use access logging and an independently available recovery path suited to the organisation’s security requirements.
3. Test rotation and recovery
Confirm that authorised recovery can decrypt a selected older point after rotation and from a trusted replacement environment. Do not retire a key merely because the live application uses a newer one. Tie key retention to the data that still requires it and review access when administrators leave.
Check the result
- A controlled recovery test can decrypt the required retained data.
- Emergency access works without exposing keys in tickets, scripts or screenshots.
Troubleshooting
- The repository is intact but the key is unavailable
- Use the documented key-recovery route and check whether an authorised older key version is retained. Encryption cannot be assumed recoverable without the required key material.
Official references
Use the documentation for your installed version when a flag, service name or platform feature differs.
