LAB 22 ‐ Encrypt OCI Storage with Master Encryption Key (MEK) - gautam-amitesh/OCI GitHub Wiki
Encrypting Boot Volume
-
Navigation
Navigation menu > Storage > Block Storage > Boot Volumes -
Click three dot
Actionsmenu of the specific boot volume and clickAssign master encryption key -
Select
Vault compartment,Vault,Master encryption key compartment, andMaster encryption keythen clickAssign -
If it throws an error like shown in below snapshot, most likely you are missing policy
-
To fix this go to policy creation and click
Create Policyand fill in the detailsAllow service blockstorage to use keys in compartment <Your_Compartment_Name> Allow group <Your_Group_Name> to use key-delegates in compartment <Your_Compartment_Name> Allow group <Your_Group_Name> to use keys in compartment <Your_Compartment_Name> -
Now again try to assign key this time it will work
-
To unassign master encryption key or to edit it, click
Actionsmenu and thenUnassign master encryption keyorEdit master encryption key
Encrypting Block Volume
-
Navigation
Navigation menu > Storage > Block Storage > Block Volumes -
Click three dot
Actionsmenu of the specific block volume and clickAssign master encryption key\ -
Select
Vault compartment,Vault,Master encryption key compartment, andMaster encryption keythen clickAssign -
To unassign master encryption key or to edit it, click
Actionsmenu and thenUnassign master encryption keyorEdit master encryption key
Encrypting Bucket
-
Navigation
Navigation menu > Storage > Object Storage & Archive Storage > Buckets -
Click on the specific bucken name to headover to the details page
-
On the details page find Encryption key and click
Assign key -
Select
Vault compartment,Vault,Master encryption key compartment, andMaster encryption keythen clickAssign -
If you encounter an error like shown in below snapshot then you will again need to add a policy statement
-
To fix this go to policy creation and click
Create Policyand fill in the detailsAllow service objectstorage-us-ashburn-1 to use keys in compartment <Your_Compartment_Name> -
Let's try again
-
If you want to unassign or edit key you can do it by clicking on the
Actionsmenu