Control: 5.2.1 Ensure Block Volumes are encrypted with Customer Managed Keys (CMK)
Description
Oracle Cloud Infrastructure Block Volume service lets you dynamically provision and manage block storage volumes. By default, the Oracle service manages the keys that encrypt block volumes. Block Volumes can also be encrypted using a customer managed key.
Terminated Block Volumes cannot be recovered and any data on a terminated volume is permanently lost. However, Block Volumes can exist in a terminated state within the OCI Portal and CLI for some time after deleting. As such, any Block Volumes in this state should not be considered when assessing this policy.
Encryption of block volumes provides an additional level of security for your data. Management of encryption keys is critical to protecting and accessing protected data. Customers should identify block volumes encrypted with Oracle service managed keys in order to determine if they want to manage the keys for certain volumes and then apply their own key lifecycle management to the selected block volumes.
Remediation
From Console
- Follow the audit procedure above.
- For each block volume returned, click the link under Display name.
- If the value for
Encryption Key
isOracle-managed key
, clickAssign
next toOracle-managed key
. - Select a
Vault Compartment
andVault
. - Select a
Master Encryption Key Compartment
andMaster Encryption key
. - Click
Assign
.
From CLI
- Follow the audit procedure.
- For each
boot volume
identified, get the OCID. - Execute the following command:
oci bv volume-kms-key update –volume-id <volume OCID> --kms-key-id <kms keyOCID>
Usage
Run the control in your terminal:
powerpipe control run oci_compliance.control.cis_v200_5_2_1
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run oci_compliance.control.cis_v200_5_2_1 --share
SQL
This control uses a named query:
blockstorage_block_volume_cmk_encryption_enabled