With bring your own key, the cloud provider still holds your key. Keeping it in your own HSM means only you can decrypt.
How Keep Your Own Key encryption, a hardware security module and envelope encryption keep cloud data under your control, using IBM Hyper Protect Crypto Services as the example.
Picture a finance team moving its records to a public cloud. The move goes well, until the auditor asks a simple question: who besides us can reach the keys that decrypt this data? For many cloud services the honest answer includes the provider. This post explains how a Keep Your Own Key design changes that answer, using IBM Cloud Hyper Protect Crypto Services (HPCS) as the example.
Explore the interactive HPCS mindmap
The cloud dilemma
Moving to the cloud brings scale and convenience, but you hand over the physical hardware. That leaves the question of who can reach the keys that protect your data, and whether you can prove it.
Keep Your Own Key (KYOK)
Most cloud key services offer “bring your own key”: you supply the key, but the provider’s key management system holds and uses it. Keep Your Own Key goes further. In HPCS, you take ownership of a dedicated hardware security module by loading your own master key, and IBM documents that privileged users, including IBM’s own administrators, are locked out of it.
The vault: a hardware security module (HSM)
An HSM is tamper-resistant hardware that stores keys and performs cryptographic operations inside the device, so keys are never exposed in the clear. Think of a bank’s safe deposit room: the provider builds and runs the vault; only you hold the key to your box.
Certification
FIPS 140 is the U.S. and Canadian government standard for validating cryptographic modules, and Level 4 is its highest level, designed to resist serious physical tampering. IBM describes the HPCS Standard plan as FIPS 140-2 Level 3 and the dedicated offering as FIPS 140-3 Level 4, the latter still under NIST certification at the time of this review. Check the current certificate for the plan you buy.
Zeroization. When a high-assurance HSM detects tampering, it erases its keys rather than let them be extracted.
Envelope encryption: layers of keys
- Master key: loaded by you and held only inside the HSM.
- Root keys: protected (wrapped) by the master key.
- Data keys: wrapped by root keys, and used to encrypt the data itself.
Rotating or revoking a key higher in the chain controls everything beneath it.
Unified Key Orchestrator: more than one cloud
HPCS has two forms:
- Standard plan: a dedicated key management service for IBM Cloud.
- Unified Key Orchestrator: manages keystores in IBM Cloud, AWS Key Management Service, Azure Key Vault and Google Cloud KMS from one place.
Where it is used
- Cloud storage: object and block storage encrypted with envelope encryption.
- Databases: transparent database encryption for databases such as Oracle and Db2, with the master key in the HSM rather than on the database server.
- Virtual environments: VMware workloads protected through the KMIP standard.
Who does what
Your security team owns the master key ceremony, key rotation and access policies. The cloud provider runs the HSM hardware and service. Your application and database teams connect their workloads to the keys. Whichever provider you choose, ask for the same three things: who can reach the keys, which FIPS certificate applies to your plan, and how you would prove both to an auditor.
Sources
- IBM, Hyper Protect Crypto Services product page: ibm.com
- IBM Cloud Docs, “Workload isolation” (Unified Key Orchestrator architecture): cloud.ibm.com
- IBM Cloud Docs, “Connecting to external keystores”: cloud.ibm.com