Secret Management In Oracle Cloud (OCI)

Oracle

Share Post Now :

HOW TO GET HIGH PAYING JOBS IN AWS CLOUD

Even as a beginner with NO Experience Coding Language

Explore Free course Now

Table of Contents

Loading

When we are working on an application or over a project on Oracle Cloud there are some Data that are confidential like API tokens, passwords, and more. This data is called Secret data.

For this, we need a centralized space in our Oracle Cloud Infrastructure (OCI) where we can store, manage, and access these Secrets.

In this blog, I will discuss Secret Management & Steps to configure it.

Secret management systemOverview Of Secret Management System

Recently a New Feature, Secrets has been introduced to the OCI Vaults Service. These Secrets are stored in a vault and applications can use them as needed. We have to create a vault and key before creating a secret. Secrets are stored in a vault and encrypted using the key that we choose while creating a secret.

To know in more detail about Vaults and keys and steps to configure KMS then click here.

Advantages Of Secrets

  • You can centralize secrets management and only administrators will have Create, Update, and Delete permissions on secrets
  • You can rotate/update secrets without any changes in the consumer application

Steps To Configure Secret In Vault

Oracle Vault is a logical grouping of Keys and Secrets. There are two types of Vaults: Private and Virtual, which have different levels of isolation, pricing, and computing.

1) Navigate to the Vault in which we want to create Secret (Demo_Vault)

Vaults

2) Click Secrets under Resources and then Click Create Secrets.

Create Secret

3) Enter the following information:

    • Compartment: k21acad (root)
    • Name : Object_secret
    • Description:
    • Select Encryption key: Object_Storage_key (created earlier)
    • Secret Type Template: Plain-Text/Base64
    • Secret Contents: The information (Secret) you want to encrypt

Add Secret details

4) Click on the Secret created (Object_secret)

Secret created

5) In the details of the Secret Created, Click on Versions and click on the Action icon(three dots) ahead of the version. Click View Secret Contents.

view secret content

6) We will be able to see the Encrypted Secret content. Click on Show decoded Base64 digit.

Encrypted Secret Content

7) Now we will be able to see the secret content in plain-text.

Secret content in plain-text

To know more about Secrets Management in OCI click here.

Steps Of Rotating A Secret (Versioning)

Once a Secret has created a default version of the secret is also created. If we want to update the content of the created secret we need to Rotate the version of the key. Once the new version is created we can see the status of the new version created as Current.

Follow the steps to rotate the secret version.

1) Navigate to the secret created, Under table scope click Versions and then click Create Secret Version.

Create Secret version

2) Add the updated content and click Create Secret Version.

Updating Secret content

3) We can see that the new version of Secret has created and status is also set to Current.

New Secret Version

4) We can set any Version as current if we want to

current version

Conclusion

We need a centralized & Secured place in OCI to store data like password, API tokens, and more that are needed frequently by an application developer. For this Oracle has introduces a feature Secrets in Vault Service of OCI. In this post, I have covered the overview of the Secret Management System and steps to configure and rotate the secret version in OCI. I hope it will help you understand the concept of Secrets in OCI.

KMS is also covered in our OCI Architect Professional [1z0-997] Certification training. To know more about this training click here.

Related/Further Readings

Next Task For You

In our OCI Architect Professional [1Z0-997] Certification training, we cover KMS in OCI in Design for Security & Compliance module. In this module, we also cover the Security Overview, Identity & Access Management (IAM), Web Application Firewall (WAF), Data Safe.

For the list of Hands-On guide click here.

1z0-997

Picture of mike

mike

I started my IT career in 2000 as an Oracle DBA/Apps DBA. The first few years were tough (<$100/month), with very little growth. In 2004, I moved to the UK. After working really hard, I landed a job that paid me £2700 per month. In February 2005, I saw a job that was £450 per day, which was nearly 4 times of my then salary.