Phase 4 · Cryptography + Encryption at Rest · Lesson 2 of 3
Article
·
20 min
·
+10 pts
In the last lesson we ended on the insight that for encryption at rest, the algorithm is rarely the interesting part — the key is. This lesson is about where those keys live and who controls them. Every major cloud runs a Key Management Service (KMS): a hardened, audited service that creates keys, wraps and unwraps data keys, enforces who may use a key, and logs every use. When an auditor tests "data is encrypted at rest," what they are really testing is your KMS configuration: which key encrypts what, who can decrypt, how often the key rotates, and where the access log is.
By the end you will be able to read a cloud encryption setup the way an auditor does — distinguishing provider-managed keys from customer-managed keys from bring-your-own-key, and knowing which questions each choice forces you to answer.
Auditor: 'Who can decrypt this data?' — you, ten minutes in
The three services do the same job with different names. You should recognize all three because real environments are rarely single-cloud.
| Cloud | Service | Key object | Native rotation |
|---|---|---|---|
| AWS | Key Management Service (KMS) | KMS key (formerly "CMK") | Automatic annual rotation for AWS-managed material |
| GCP | Cloud KMS | CryptoKey (with versions) | Configurable automatic rotation period |
| Azure | Key Vault / Managed HSM | Key | Configurable rotation policy |
All three perform envelope encryption (from the previous lesson): a key encryption key never leaves the service, data keys are wrapped and unwrapped on demand, and every operation is authenticated, authorized, and logged. Behind the most sensitive tiers sits a hardware security module (HSM) — a tamper-resistant device, validated to FIPS 140-2/140-3, that performs key operations so the raw key material never exists in ordinary memory. When a control requires "keys protected in an HSM," that maps to AWS KMS / CloudHSM, GCP Cloud KMS HSM protection level, or Azure Managed HSM.
The single distinction that drives most compliance conversations is how much control you, the customer, have over the key. It runs along a spectrum, and the vocabulary is worth getting exactly right because vendors blur it.
Control vs. operational burden across the key-ownership spectrum
BYOK is about origin, not custody
A common mistake is treating BYOK as "the cloud can't see our key." It usually cannot mean that — with BYOK the cloud still operates the key inside its KMS to do the encryption. What BYOK gives you is control over the key's origin and provenance. If the requirement is genuinely "the provider must never be able to use the key without us," that is HYOK / external key store territory, with the latency and availability cost that implies. Map the customer's actual demand to the right tier; do not let "BYOK" paper over a sovereignty requirement it does not meet.
For encryption at rest, four KMS properties carry most of the evidentiary weight — and all four are exportable:
The highest-leverage artifact is the key-access log — AWS CloudTrail KMS events, GCP Cloud Audit Logs, Azure Key Vault logs. It answers "who decrypted this data, and when" with timestamps, which is exactly the evidence that turns "access is controlled" from an assertion into a demonstration.
Quick check
A regulated SaaS stores customer financial records in a managed database. Leadership wants to be able to prove, and to independently enforce, exactly who can decrypt that data — and to be able to cut off all access to it in an emergency without deleting the database. Which key approach best fits, and why?
These controls map cleanly and the same KMS evidence is reusable across them:
One KMS configuration, exported once, answers all of them — which is why getting the key tier and the key policy right is among the highest-leverage data-protection decisions you will review.
GRC Engineer's lens
When you review encryption at rest, do not stop at the green "encrypted" checkmark — interrogate the key. Ask: provider-managed or CMK? Rotation enabled and on what cadence? Who is in the key policy, and are admin and use separated? Where is the key-access log, and can we pull "who decrypted this, when"? For each regulated data store you should be able to name the key that protects it and the report that proves who can use it. That fluency lets you write an accurate control narrative and answer the auditor's inevitable follow-up — "show me who can decrypt this" — without a fire drill.
Every cloud encrypts at rest through a KMS doing envelope encryption; the meaningful choice is who controls the key, on a spectrum from provider-managed → CMK → BYOK → HYOK, trading control and auditability against operational burden. The four properties worth verifying are coverage, ownership, rotation, and decrypt-access, and the highest-value artifact is the key-access log. You will put exactly this judgment to work in the next lesson, designing an encryption-at-rest strategy for a regulated SaaS — deciding, data store by data store, which key tier and key policy the requirements actually demand.