Ensure OCI File System is Encrypted with a customer Managed Key

Error: OCI File Storage File Systems are not encrypted with a Customer Managed Key (CMK)
Bridgecrew Policy ID: BC_OCI_STORAGE_7
Checkov Check ID: CKV_OCI_15
Severity: HIGH

OCI File Storage File Systems are not encrypted with a Customer Managed Key (CMK)

Description

This policy identifies the OCI File Storage File Systems that are not encrypted with a Customer Managed Key (CMK). It is recommended that File Storage File Systems should be encrypted with a Customer Managed Key (CMK), using Customer Managed Key (CMK), provides an additional level of security on your data by allowing you to manage your own encryption key lifecycle management for the File System

Fix - Runtime

OCI Console

  1. Login to the OCI Console
  2. Type the resource reported in the alert into the Search box at the top of the Console.
  3. Click the resource reported in the alert from the Resources submenu
  4. Click Assign next to Encryption Key: Oracle managed key.
  5. Select a Vault from the appropriate compartment
  6. Select a Master Encryption Key
  7. Click Assign

Fix - Buildtime

Terraform

  • Resource: oci_file_storage_file_system
  • Arguments: kms_key_id
resource "oci_file_storage_file_system" "pass" {
  ...
  kms_key_id         = oci_kms_key.test_key.id
  ...
}