---
title: Object Storage buckets should be encrypted with a Customer Managed Key (CMK)
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > Object Storage buckets should be
  encrypted with a Customer Managed Key (CMK)
---

# Object Storage buckets should be encrypted with a Customer Managed Key (CMK)
 
## Description{% #description %}

Oracle Cloud Infrastructure (OCI) Object Storage buckets should be encrypted with a Customer Managed Key (CMK) to provide enhanced security and control over encryption key lifecycle management. By default, Object Storage buckets are encrypted with Oracle-managed keys, but using Customer Managed Keys provides additional security benefits including key rotation control, access logging, and the ability to disable keys when needed.

This rule checks the `kms_key_id` configuration of OCI buckets and fails when buckets are not configured with a Customer Managed Key.

## Remediation{% #remediation %}

To configure your OCI Object Storage bucket with CMK encryption, you need to specify a valid `kms_key_id` from Oracle Cloud Infrastructure Vault service. For guidance on configuring Object Storage bucket encryption with CMKs, refer to the [Object Storage Data Encryption](https://docs.oracle.com/iaas/Content/Object/Tasks/encryption.htm) section of the Oracle Cloud Infrastructure Documentation.
