Key Lifecycle Management

When you distribute a Classic Key to a Cloud KMS provider, Akeyless keeps the key and remains the single place where you manage it. We call these keys managed keys. Lifecycle actions you take in Akeyless (rotate, disable, enable, delete) are applied to the copy held by the Cloud KMS. You don't need to repeat them in each cloud console.

📘

Note

Only Classic Keys can be distributed to Cloud KMS providers. DFC™ keys can't. For the full list of supported providers, see External KMS Integration.

How Akeyless Actions Affect the Cloud KMS

Action in AkeylessEffect in AkeylessEffect in the Cloud KMS
Associate the key with a targetKey is linked to the KMS targetA copy of the key material is imported (BYOK)
RotateA new key version is createdThe new version is pushed to the provider
Disable / EnableKey state changesKey state changes to match
Remove the associationKey is keptKey is removed from that provider
Delete the keyKey is deletedKey is deleted from every associated provider

Prerequisites

Create a Managed Key

A Classic Key becomes a managed key when you associate it with a Cloud KMS target. Akeyless then securely transfers a copy of the key material to the provider, following that provider's key import (BYOK) specification.

akeyless assoc-target-item --name <Key Name> --target-name <Target Name>

Each provider needs some extra parameters. See the page for your provider:

To distribute one key to several providers, see Multi-Target Classic Key Provisioning.

Rotate a Managed Key

Always rotate managed keys from Akeyless, not from the Cloud KMS. Akeyless creates the new key version and distributes it to every associated provider.

  • You can rotate a key automatically on a set schedule, or manually whenever you need to.
  • Only AES keys generated by Akeyless can be rotated. Imported keys and RSA or EC keys can't.

For setup steps and options, see Key Rotation.

🚧

Salesforce Shield limits

Salesforce limits how often keys can rotate: Data and Analytics keys once every 24 hours, SearchIndex keys once every 7 days.

Disable or Enable a Managed Key

When you change a key's state in Akeyless, the key's state in every associated Cloud KMS changes to match:

akeyless set-item-state --name <Key Name> --desired-state <Disabled|Enabled>
🚧

Salesforce Shield

You can't disable the active key in Salesforce. Rotate it first, then disable the previous version.

Remove a Managed Key from a Cloud KMS

To stop distributing a key to a Cloud KMS but keep it in Akeyless, remove its association with the target. The key is deleted from the provider and stays in the Akeyless KMS.

To remove the key from all associated targets:

akeyless delete-assoc-target-item --name <Key Name>

To remove it from one target only, add --target-name:

akeyless delete-assoc-target-item --name <Key Name> --target-name <Target Name>

For more details, see Delete the Association Between a Classic Key and a Target.

Delete a Managed Key

To delete a key from Akeyless, use delete-item:

akeyless delete-item --name <Key Name>
❗️

Deletion affects every associated Cloud KMS

If the key is still associated with one or more Cloud KMS targets, deleting it removes it from both Akeyless and every associated provider. Data encrypted with the key in those providers can become unrecoverable. If you only want to stop using the key in one provider, remove the association instead.

🚧

Salesforce Shield

You can't delete the active key in Salesforce.

Related Pages


What’s Next

Did this page help you?
Suggest Edit
Footer Section