Encrypting data in the cloud is easy: most services encrypt at rest by default. The hard questions are about the keys: who creates them, where they live, who can use them, and who could be compelled to hand them over. Cloud providers offer a spectrum of options. Understanding what each actually protects against avoids paying for complexity that doesn't reduce your real risks.

The options

Option Who generates the key Where it lives Who controls use
Provider-managed keys Provider Provider's KMS Provider, transparently
Customer-managed keys (CMK) Provider's KMS, at your request Provider's KMS/HSM You, through key policies
Bring your own key (BYOK) You, in your own HSM Imported into the provider's KMS/HSM You, through key policies
Hold your own key (HYOK) / external key manager You Your HSM or key manager, outside the provider You; the provider calls out to use it
Client-side encryption You Your systems You; the provider sees only ciphertext

What each protects against

Provider-managed keys protect against physical theft of disks and some infrastructure-level threats. They don't protect against anyone with valid access to your cloud account, because the service decrypts automatically for authorised requests.

Customer-managed keys add control and auditability: you set key policies, separate key administrators from data users, rotate keys, log every use, and can disable or delete a key to make data unreadable (crypto-shredding). This is the sweet spot for most organisations.

BYOK adds proof that you generated the key material with your own entropy and can keep an escrow copy. Once imported, the key is used inside the provider's HSMs much like a CMK. It satisfies some regulatory and policy requirements, but adds less security than many assume.

HYOK and external key managers keep the key outside the provider entirely. The provider must call your key manager to decrypt, so you can cut off access at any time, even to the provider. This addresses concerns about provider insiders and foreign legal access. The costs are real: you own availability (if your key manager is down, so is your cloud service), latency, and operational complexity.

Client-side encryption means the provider never sees plaintext. It gives the strongest protection from the provider, but breaks many cloud features: search, analytics and server-side processing.

Choosing

Start with the threats you actually face:

  • Compromised cloud credentials or misconfiguration are the most common. Key options do little here, because authorised requests are decrypted. Focus on identity controls and configuration.
  • Need to separate duties and prove control for regulators or customers: customer-managed keys with tight key policies and logging.
  • Requirement to generate or escrow keys yourself: BYOK.
  • Concern about provider insiders or compelled access in another jurisdiction: external key management or client-side encryption, for the most sensitive datasets only.

Many organisations end up with a tiered approach: provider-managed keys for low-sensitivity data, customer-managed keys for most business data, and external keys or client-side encryption for a small set of crown jewels.

Key management practices that matter more than the option

  • Separation of duties: key administrators can't read data; data users can't manage keys.
  • Least-privilege key policies: which roles and services can use each key, and for what.
  • Logging and alerting on key usage, policy changes, disabling and scheduled deletion.
  • Rotation according to your cryptographic standard.
  • Deletion safeguards: waiting periods and approvals before keys are destroyed, since deleting a key destroys the data.
  • Backup and recovery for keys you hold yourself.
  • Crypto-agility: be able to move to new algorithms, including post-quantum ones. See crypto-agility.

Data residency and privacy

Customer-controlled keys are often used to support data residency and transfer arguments under privacy laws: data stored abroad but encrypted with keys held in-country is harder for foreign parties to access. It helps, but it isn't a complete answer to transfer rules. See cross-border transfers explained.

Learn more

Cloud data security, encryption and key management are core topics in the free CCSP track.

Written and reviewed by the DigiTrust Asia editorial team. How we research, review and correct articles.

Prepare for cloud security

Free CCSP lessons and practice questions.

Create a free account