Enabling and Updating Auto Key Rotation
Learn about enabling automatic key rotation, and about updating automatic rotation settings for keys that already have this feature enabled.
This feature is available only for virtual private vaults.
You can update automatic key rotation settings to do the following:
- Enable automatic rotation for keys that don't have this feature enabled
- Update the date on which the next rotation happens
- Update the rotation interval (the number of days, between 60 and 365, that pass before a key is rotated)
Manual Key Rotation
See Rotating a Key for information on manually rotating an encryption key. See Key Versions & Rotations in the the Key and Secret Management Concepts topic for an overview of key rotation.
Use the oci kms management key update command and required parameters to edit the auto rotation settings of keys in virtual private vaults.
oci kms management key update --key-id <key_ocid> --is-auto-rotation-enabled <true | false> --auto-key-rotation-details <key_rotation_details_json> --endpoint <kmsmanagement_control_plane_URL>
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Use the UpdateKey API with the Management Endpoint to update automatic key rotation settings for a virtual private vault key.
Note
The Management Endpoint is used for management operations including Create, Update, List, Get, and Delete. The Management Endpoint is also called the control plane URL or the KMSMANAGEMENT endpoint.
The Cryptographic Endpoint is used for cryptographic operations including Encrypt, Decrypt, Generate Data Encryption Key, Sign, and Verify. The Cryptographic Endpoint is also called the data plane URL or the KMSCRYPTO endpoint.
You can find the management and cryptographic endpoints in a vault's details metadata. See Getting a Vault's Details for instructions.
For regional endpoints for the Key Management, Secret Management, and Secret Retrieval APIs, see API Reference and Endpoints.
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.