How to encrypt OCI Bucket using customer-managed-keys

How to encrypt an Oracle Cloud bucket using customer-managed keys stored in OCI Vault

1. Create a key in the vault

2. Add policy

We’ll need a new IAM policy to allow the buckets to use the Vault keys:

allow service objectsto…


This content originally appeared on DEV Community and was authored by Faris Durrani

How to encrypt an Oracle Cloud bucket using customer-managed keys stored in OCI Vault

1. Create a key in the vault

Vault key

2. Add policy

We'll need a new IAM policy to allow the buckets to use the Vault keys:

allow service objectstorage-us-ashburn-1 to use keys in tenancy

Info: you can swap the objectstorage-us-ashburn-1 with blockstorage to enable encryption using customer-managed keys on block volumes

3. Create a bucket with customer-managed keys encryption

Create bucket

Bucket contents

You can also edit a current bucket to use the customer-managed key instead of the default OCI key.

Reassign key

Safe harbor statement

The information provided on this channel/article/story is solely intended for informational purposes and cannot be used as a part of any contractual agreement. The content does not guarantee the delivery of any material, code, or functionality, and should not be the sole basis for making purchasing decisions. The postings on this site are my own and do not necessarily reflect the views or work of Oracle or Mythics, LLC.

This work is licensed under a Creative Commons Attribution 4.0 International License.


This content originally appeared on DEV Community and was authored by Faris Durrani


Print Share Comment Cite Upload Translate Updates
APA

Faris Durrani | Sciencx (2025-06-30T20:28:20+00:00) How to encrypt OCI Bucket using customer-managed-keys. Retrieved from https://www.scien.cx/2025/06/30/how-to-encrypt-oci-bucket-using-customer-managed-keys/

MLA
" » How to encrypt OCI Bucket using customer-managed-keys." Faris Durrani | Sciencx - Monday June 30, 2025, https://www.scien.cx/2025/06/30/how-to-encrypt-oci-bucket-using-customer-managed-keys/
HARVARD
Faris Durrani | Sciencx Monday June 30, 2025 » How to encrypt OCI Bucket using customer-managed-keys., viewed ,<https://www.scien.cx/2025/06/30/how-to-encrypt-oci-bucket-using-customer-managed-keys/>
VANCOUVER
Faris Durrani | Sciencx - » How to encrypt OCI Bucket using customer-managed-keys. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/06/30/how-to-encrypt-oci-bucket-using-customer-managed-keys/
CHICAGO
" » How to encrypt OCI Bucket using customer-managed-keys." Faris Durrani | Sciencx - Accessed . https://www.scien.cx/2025/06/30/how-to-encrypt-oci-bucket-using-customer-managed-keys/
IEEE
" » How to encrypt OCI Bucket using customer-managed-keys." Faris Durrani | Sciencx [Online]. Available: https://www.scien.cx/2025/06/30/how-to-encrypt-oci-bucket-using-customer-managed-keys/. [Accessed: ]
rf:citation
» How to encrypt OCI Bucket using customer-managed-keys | Faris Durrani | Sciencx | https://www.scien.cx/2025/06/30/how-to-encrypt-oci-bucket-using-customer-managed-keys/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.