What Is a Customer-Managed Encryption Key? How to Choose It Over Default Keys
A customer-managed encryption key (CMK) is a key that you create or bring into a cloud service and manage directly, including its permissions, use, rotation, and retirement, instead of relying only on the provider’s default key management. Using a CMK does not mean that you perform every data-encryption operation or directly hold each data key. Many cloud services use the CMK as a higher-level key to wrap data encryption keys (DEKs), while the service encrypts the data itself. Choose a CMK when the added key control or auditability is worth the operational responsibility.
This article draws on official AWS KMS, Azure Key Vault, and Google Cloud KMS documentation checked on November 19, 2026. Terms and supported features vary by provider; verify the key types and requirements for the specific resource.
What does a customer-managed key control?
When a cloud storage service encrypts data, it often uses a data encryption key (DEK). The service encrypts the data, then a customer-managed key or key-encryption key (KEK) protects the DEK. This is envelope encryption. Using separate DEKs avoids sending large data volumes to a key-management service for every encryption operation, while the higher-level key controls access to those DEKs.
The actual control you gain depends on the service integration. The resource must support CMKs, and its service identity must be authorized to use the key for operations such as encrypting, decrypting, wrapping, or unwrapping. In Microsoft’s Azure Storage example, a managed identity associated with the storage account uses a Key Vault CMK to wrap the account encryption key and unwrap it for reads and writes. The customer controls key access and lifecycle, but the cloud service commonly processes the data through its own encryption integration.
A customer-managed key does not mean the provider’s default encryption was absent or that only a CMK can protect data safely. AWS, Azure, and Google document provider-managed encryption for data at rest as a default or supported option. A CMK adds controls over key policy, lifecycle, auditing, location, or imported material; the exact controls depend on the service.
How do default keys, service-managed keys, CMKs, and BYOK differ?
“Customer-managed” is not a uniform provider-wide taxonomy. In AWS KMS, a customer managed key is created by the customer; an AWS managed key is created in the customer account but managed by an AWS service; an AWS owned key belongs to a service account and its policies and use are not visible to the customer. Azure calls keys whose creation, import, lifecycle, and use the customer controls customer-managed keys (CMKs), while platform-managed keys (PMKs) are the default. In Google Cloud KMS, customer-created keys can be used by services with a CMEK integration.
Bring your own key (BYOK) means importing key material created elsewhere, such as in an external HSM, into a cloud key-management service. BYOK is one way to use a CMK; it is not required for every CMK. A key created in the cloud KMS can still be customer-managed if the customer controls its policies and lifecycle. Imported keys remain subject to service support, algorithms, protection levels, regions, and key-store requirements.
| Option | Control the customer gains | Main responsibility or limitation |
|---|---|---|
| Platform- or service-managed default key | Simple setup; the provider operates the key lifecycle | The customer may not control key policy, manual rotation, retirement, or every audit detail |
| Service-managed key in the customer account (AWS terminology) | Some visibility and audit information | The customer cannot change key policy, rotate manually, or schedule deletion |
| Customer-managed key | More direct control of policy, permitted use, rotation, disabling/retirement, or key location | More setup, permission wiring, cost, lifecycle and recovery work; the resource must support it |
| BYOK | Retains an external key-material origin or generation process | Import rules, non-exportability, protection level, and rotation compatibility need review |
This is a conceptual comparison, not a claim that similarly named options behave identically. For example, AWS managed keys exist in the customer account but customers cannot edit their key policies; Google CMEK means a compatible service uses a Cloud KMS key.
What do you gain and risk with a CMK?
A CMK can help enforce who may use a key, separate key administration from service administration, audit key activity, or disable a key to block further access to dependent data. It may also support documented requirements for key location or imported material. Google lists customer-specific cryptographic boundaries, key-use location policies, logging, and selective cryptographic erasure as possible goals.
The trade-off is availability and recovery responsibility. Disabling a CMK or removing a service identity’s permission can make the dependent service unable to encrypt or decrypt data. Azure warns that losing a KEK can mean losing data and advises against deleting keys; it recommends backing them up when created or rotated. In the Azure Storage example, disabling the key makes reads and writes fail with HTTP 403. Key retirement or permission revocation is therefore an operational change that can interrupt access to every resource using that key.
CMKs are not supported by every service, and integrations may differ in key type, region, rotation, version refresh, network path, and permissions. Automatic key rotation may create a new key version without immediately switching every data service to it. Check integration coverage and failure behavior before applying organization-wide policies; otherwise, resource creation or data access can fail.
When is a default key enough, and when is a CMK justified?
If the requirement is simply that stored data be encrypted, and the provider-managed default meets the policy and regulatory requirements, the default can keep operations simpler. AWS says an AWS owned key can be convenient when customers do not need to audit or control the key. Azure describes platform-managed keys as default encryption with no additional configuration and says they can provide strong protection for most organizations.
Consider a CMK when you must manage key-use policy, audit key operations, separate keys by service or data, specify key location, or meet a requirement that explicitly calls for customer-controlled keys. Verify that the requirement actually calls for a CMK feature; a general request to “meet compliance” alone does not establish that CMKs are mandatory. Match the documented control to the service implementation with security and legal stakeholders.
Before deciding, check the target service’s CMK support list and configuration requirements, then define the accounts, regions, and resources in scope. Grant the service identity only the required key operations and separate that permission from key administration. Review rotation, how long old versions must remain enabled, backup, recovery, impact of disabling the key, API usage charges, and key-management costs.
Example: protecting a storage account’s data key
Hypothetical example: A team wants to use a CMK for data at rest in cloud object storage. First check that the storage service and region support customer-managed keys, then identify the service identity. The key administrator creates or imports a key into the key store and grants that identity the required wrap/unwrap and read permissions. The storage administrator configures the account to use the CMK.
The service usually uses the CMK to wrap an account or data encryption key rather than encrypting every object directly with the CMK. Before production, use a small nonproduction resource to verify reads and writes, key-access auditing, rotation, and recovery. Roll out to a limited scope first, and document that disabling the CMK blocks data access in the emergency procedure and change approvals. This example illustrates envelope encryption and separated permissions; it is not a test performed in a particular cloud environment.
What should you verify before adoption?
**Purpose and scope:** Document the control you need—such as key access, audit, or location—and the services, resources, and regions in scope.
**Support:** Check each service’s CMK feature, key types, version update behavior, replication, and failure handling in its official documentation.
**Separate permissions:** Give the service identity only required cryptographic permissions and separate key administrators from data administrators.
**Lifecycle:** Document creation or import, rotation, old-version retention, backup and recovery, disablement, and retirement approvals.
**Impact rehearsal:** In a nonproduction environment, test connecting a new key, rotation, permission removal, key disablement, recovery, application errors, and data access.
**Recovery plan:** Identify which services stop if the key becomes unavailable, how a backup key is recovered, and who can approve recovery if the usual owner is unavailable.
A customer-managed key is not a way to introduce encryption from scratch; it increases customer control and responsibility within cloud data encryption. If default keys meet the requirement, simpler operations may be the better choice. Apply CMKs when the control requirement is clear and the team is prepared to manage how key-access failures affect data availability.
Sources
[AWS KMS key types and customer-managed keys](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html)
[AWS KMS key selection and management](https://docs.aws.amazon.com/prescriptive-guidance/latest/encryption-best-practices/kms.html)
[Azure data encryption models](https://learn.microsoft.com/en-us/azure/security/fundamentals/encryption-models)
[Azure encryption at rest and key management](https://learn.microsoft.com/en-us/azure/security/fundamentals/encryption-atrest)
[Azure key management overview](https://learn.microsoft.com/en-us/azure/security/fundamentals/key-management)
[Azure Storage CMK behavior and rotation](https://learn.microsoft.com/en-us/azure/storage/common/customer-managed-keys-overview)
[Google Cloud customer-managed encryption keys (CMEK)](https://docs.cloud.google.com/kms/docs/cmek)