- Security >
- Enable Authentication for a Cloud Manager Project >
- Rotate Keyfile
Rotate Keyfile¶
On this page
If your cluster uses keyfile authentication, it is recommended that you rotate the keyfile periodically. Cloud Manager provides an automated procedure for keyfile rotation with no downtime.
To rotate the keyfile using the API instead of the user interface, see Rotate a Key File with the API.
Prerequisites¶
To perform a rolling keyfile rotation:
- Authentication must be enabled.
- At least one cluster in the project must be configured with the
clusterAuthMode
option set to
keyFile
orsendKeyFile
. - All clusters in the project must be running MongoDB version 4.2 or higher.