Skip to content

LAB 31 ‐ Encrypt Object Storage with Custom managed Keys

DevWithNehaCloud edited this page May 19, 2026 · 4 revisions

Replace oracle managed keys with vault(custom) keys

we will encrypt Object Storage(bucket) oracle managed keys with our vault keys that we have already created.

  1. Open your bucket details page and click on the option Assign next to Encryption key
image
  1. Select created vault & vault key and click on assign
image

It's clear that we currently lack the necessary permissions to change keys in the volume.

Therefore, our first step should be to create a policy that grants the required permissions.

we got the below error because we don't have permission so click on cancel and create the policy first then assign the keys.

image

Next we add this policy


allow service objectstorage-us-ashburn-1 to use keys in compartment Hub_compute_and_storage_compartment

image

I fogot to add the region identifier with the keyword object storage so editing the policy

image image

Now we will try again to assign vault key in bucket

image

Finally, vault key has assigned to bucket

image

Clone this wiki locally