LAB 27 (Encrypt Boot Volume with Custom Managed Keys) - arunsinghchauhan38-arch/CLOUDARCHITECTDOC GitHub Wiki
Encrypt Boot Volume with Custom Managed Keys
Encrypting a boot volume with Customer-Managed Keys (CMKs) in OCI (Oracle Cloud Infrastructure) is a powerful way to maintain control over your data security.
๐ Reasons for Using CMKs on Boot Volumes
1. Enhanced Security Control
By default, OCI encrypts boot volumes with Oracle-managed keys.
With CMKs, you own the keys โ meaning you decide when to rotate, disable, or revoke them.
If the key is disabled, the boot volume becomes inaccessible, giving you ultimate control over data exposure.
2. Compliance & Regulatory Requirements
Many industries (finance, healthcare, government) require customer-controlled encryption keys to meet standards like:
-
GDPR
-
HIPAA
-
PCI-DSS
Using CMKs ensures you meet these strict compliance mandates.
3. Separation of Duties
-
Security teams often want to separate data ownership from cloud provider control.
-
CMKs allow you to enforce that only authorized groups can use/decrypt volumes, independent of Oracleโs default key management.
4. Key Lifecycle Management
-
You can rotate keys periodically to reduce risk.
-
You can audit key usage via OCI Vault logs.
-
You can disable or delete keys if a workload is retired, ensuring data is permanently inaccessible.
5. Multi-Tenant & Enterprise Control
-
In large organizations, different teams may need different encryption policies.
-
CMKs let you assign specific keys per compartment/project, aligning with enterprise governance.
Steps to encrypt Boot Volume with Custom managed keys
1.Go to Storage and click on Block Volumes and click on Boot Volumes
2. Click on Assign Button
When me click on assign button that time an error comes in front of us due to permission not granted for do this. so we first create policy to give permission.
Now we add this policy
allow service blockstorage to use keys in compartment Hub_Compute_and_storage_compartment
after adding policy we try to assign key again.
Now we successfully assign key to boot volume.