Product docs and API reference are now on Akamai TechDocs.
Search product docs.
Search for “” in product docs.
Search API reference.
Search for “” in API reference.
Search Results
 results matching 
 results
No Results
Filters
Migrate From Oracle Vault to OpenBao on Akamai Cloud
Traducciones al EspañolEstamos traduciendo nuestros guías y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.
OpenBao is an open source secrets management tool and fork of HashiCorp Vault that provides teams control over how secrets are stored, encrypted, and accessed. OpenBao can be self-hosted in any environment, including on-premises and across multiple clouds.
Oracle Vault is a part of Oracle Cloud Infrastructure (OCI). It provides a secure, managed solution for storing and controlling access to sensitive information like API keys, passwords, and encryption keys. Oracle Vault is designed to integrate with other Oracle services, supporting features for key management, secret storage, and cryptographic functions.
This guide provides steps and considerations for how to migrate secrets stored in Oracle Vault to OpenBao running on Akamai Cloud.
Before You Begin
Follow our Get Started guide to create an Akamai Cloud account if you do not already have one.
When migrating from Oracle Vault to OpenBao on Akamai Cloud, OpenBao should be deployed before you begin. OpenBao can be installed on a single Linode instance or deployed to a multi-node cluster using Linode Kubernetes Engine (LKE). Follow the appropriate guide below based on your production needs:
Ensure that you have access to your Oracle Cloud platform account with sufficient permissions to work with Oracle Vault. The OCI CLI must also be installed and configured
Install
jq
, a lightweight command line JSON processor.
sudo
. If you’re not familiar with the sudo
command, see our
Users and Groups doc.Using This Guide
This tutorial contains a number of placeholders that are intended to be replaced by your own unique values. For reference purposes, the table below lists these placeholders, what they represent, and the example values used in this guide:
Placeholder | Represents | Example Value |
---|---|---|
OCI_COMPARTMENT_ID | The OCID of the compartment containing your vault. | ocid1.compartment.oc1..aaaaaaaawrrlh7hw6b4tnsbxevyoywscike5ygn4ut5n734mjsclijgpjjgq |
OCI_SECRET_ID | The OCID of the secret stored in Oracle Vault. | ocid1.vaultsecret.oc1.phx.amaaaaaaogvqnkqaepiqln7ztj43ugit75w3wl7kyzldk3rbqkfd2zmtp3ea |
OCI_ENCODED_SECRET | The base64-encoded value of the Oracle secret. | eyAiYWNjZXNzX2tleV9pZCIgOiAiQUtJQTUxM0oyRERSQVhDRktYRjUiLCAic2VjcmV0X2FjY2Vzc19rZXkiIDoiWGRxRDBCUGE4YUxGYU4rRUk4U0FZbTlVNFpZZVhRZE1HQUlqS0QveCIgfQ== |
POLICY_FILE | The name of the file containing the OpenBao policy. | cloud-credentials-policy.hcl |
SECRET_MOUNT_PATH | The KV mount path used in OpenBao to organize secrets. | cloud-credentials |
POLICY_NAME | The internal name for the policy in OpenBao. | cloud-credentials-policy |
APPROLE_NAME | The name of the AppRole in OpenBao. | cloud-credential-reader-approle |
APPROLE_ID | The role ID generated for the AppRole by OpenBao. | c8663988-136f-42de-af40-1dfb94f0c1f6 |
APPROLE_SECRET_ID | The secret ID generated for the AppRole by OpenBao. | 9b9c27a3-dc27-4eea-921f-773164ec17c7 |
APPROLE_TOKEN | The API token retrieved from OpenBao using the AppRole. | s.36Yb3ijEOJbifprhdEiFtPhR |
SECRET_NAME | The name of the secret to store in OpenBao. | provider-a |
SECRET_KEY | The key of the secret to store in OpenBao | secret |
SECRET_VALUE | The value of the secret to store in OpenBao. | { "access_key_id": "AKIA513J2DDRAXCFKXF5", "secret_access_key": "XdqD0BPa8aLFaN+EI8SAYm9U4ZYeXQdMGAIjKD/x" } |
All of the example values used in this guide are purely examples to mimic and display the format of actual secrets. Nothing listed is a real credential to any existing system.
When creating your own values, do not use any of the above credentials.
Review Existing Secrets in Oracle Vault
Before migrating to OpenBao, evaluate how your organization currently uses Oracle Vault.
For example, an application that accesses services from multiple cloud providers might retrieve access keys stored in Oracle Vault. Granting access at runtime ensures that credentials aren’t embedded in code or exposed during deployment.
OpenBao supports equivalent secret injection workflows through AppRole and Kubernetes integration.
Review Secrets Using the Oracle Console
Navigate to Security > Vault, select your vault, and open the Secrets tab. The example secrets below are used throughout this guide:
To display a secret’s value, select the secret, go to the latest version, and click View Secret Contents:
Review Secrets Using the OCI CLI
You can also use the Oracle Cloud CLI (oci
) to manage the secrets in your Oracle Vault.
Authenticate with the OCI CLI. You must have configured your API key, tenancy OCID, and user OCID. Run a basic command to confirm authentication:
oci iam region list
Identify the compartment that contains your vault:
oci iam compartment list --query 'data[]["name","id"]'
In the example above, the
credentials
vault belongs to theweb-application
compartment:[ [ "web-application", "ocid1.compartment.oc1..aaaaaaaawrrlh7hw6b4tnsbxevyoywscike5ygn4ut5n734mjsclijgpjjgq" ] ]
List the secrets in your vault by specifying the OCI_COMPARTMENT_ID (e.g.
ocid1.compartment.oc1..aaaaaaaawrrlh7hw6b4tnsbxevyoywscike5ygn4ut5n734mjsclijgpjjgq
):oci vault secret list \ --compartment-id OCI_COMPARTMENT_ID \ --query 'data[].["secret-name","description","id"]'
For Example:
oci vault secret list \ --compartment-id ocid1.compartment.oc1..aaaaaaaawrrlh7hw6b4tnsbxevyoywscike5ygn4ut5n734mjsclijgpjjgq \ --query 'data[].["secret-name","description","id"]'
[ [ "cloud_provider_a", "Access key ID and secret access key for provider", "ocid1.vaultsecret.oc1.phx.amaaaaaaogvqnkqaepiqln7ztj43ugit75w3wl7kyzldk3rbqkfd2zmtp3ea" ], [ "cloud_provider_b", "Project ID and project API KEY", "ocid1.vaultsecret.oc1.phx.amaaaaaaogvqnkqacnhdzfprgd4f4ml7rpkjqmqlyz7p5kjjfinvyn57qdoa" ], [ "cloud_provider_c", "Client ID and client secret", "ocid1.vaultsecret.oc1.phx.amaaaaaaogvqnkqavn32ibazaqinya5bv3eyc4ndfvebcnksnqk4vl74xqqa" ] ]
Retrieve the value of a secret by specifying its OCI_SECRET_ID (e.g.
ocid1.vaultsecret.oc1.phx.amaaaaaaogvqnkqaepiqln7ztj43ugit75w3wl7kyzldk3rbqkfd2zmtp3ea
):oci secrets secret-bundle get \ --secret-id OCI_SECRET_ID \ --stage CURRENT \ --query 'data."secret-bundle-content"'
For Example:
oci secrets secret-bundle get \ --secret-id ocid1.vaultsecret.oc1.phx.amaaaaaaogvqnkqaepiqln7ztj43ugit75w3wl7kyzldk3rbqkfd2zmtp3ea \ --stage CURRENT \ --query 'data."secret-bundle-content"'
{ "content": "eyAiYWNjZXNzX2tleV9pZCIgOiAiQUtJQTUxM0oyRERSQVhDRktYRjUiLCAic2VjcmV0X2FjY2Vzc19rZXkiIDoiWGRxRDBCUGE4YUxGYU4rRUk4U0FZbTlVNFpZZVhRZE1HQUlqS0QveCIgfQ==", "content-type": "BASE64" }
If the secret bundle
content-type
isBASE64
(e.g.eyAiYWNjZXNzX2tleV9pZCIgOiAiQUtJQTUxM0oyRERSQVhDRktYRjUiLCAic2VjcmV0X2FjY2Vzc19rZXkiIDoiWGRxRDBCUGE4YUxGYU4rRUk4U0FZbTlVNFpZZVhRZE1HQUlqS0QveCIgfQ==
), you must decode it to reveal the original value:echo OCI_ENCODED_SECRET \ | base64 --decode
For Example:
echo eyAiYWNjZXNzX2tleV9pZCIgOiAiQUtJQTUxM0oyRERSQVhDRktYRjUiLCAic2VjcmV0X2FjY2Vzc19rZXkiIDoiWGRxRDBCUGE4YUxGYU4rRUk4U0FZbTlVNFpZZVhRZE1HQUlqS0QveCIgfQ== \ | base64 --decode
{ "access_key_id": "AKIA513J2DDRAXCFKXF5", "secret_access_key": "XdqD0BPa8aLFaN+EI8SAYm9U4ZYeXQdMGAIjKD/x" }
Tip: Using a Single Command You can also retrieve and decode the secret in a single command:
oci secrets secret-bundle get \ --secret-id OCI_SECRET_ID \ --stage CURRENT \ --query 'data."secret-bundle-content".content' \ --raw-output \ | base64 --decode
Access Your OpenBao Deployment on Akamai Cloud
The following steps focus on migrating secrets into your OpenBao deployment on Akamai Cloud. You should already have a running OpenBao instance on either a standalone Linode instance, in an LKE cluster, or deployed via the Linode Marketplace.
If your OpenBao environment is not yet ready, refer to the appropriate deployment guide listed in the Before You Begin section and complete the setup.
Once deployed, log into your OpenBao environment. Before continuing, verify that:
- OpenBao is successfully initialized.
- The vault is unsealed.
- The
BAO_ADDR
environment variable is set. - You are authenticated using the root token.
Create a Policy and AppRole
To replicate Oracle IAM-style access control in OpenBao, use AppRoles. While Oracle Vault manages permissions through IAM policies instead of granular roles, OpenBao allows you to assign access through policy-bound AppRoles.
Follow these steps to create an OpenBao AppRole that mirrors the access controls used in Oracle IAM.
Enable AppRole
Enable the AppRole authentication method:
bao auth enable approle
Success! Enabled approle auth method at: approle/
Create a Policy
Using a text editor like
nano
, create a new.hcl
policy file in/etc/openbao
, replacing POLICY_FILE (e.g.cloud-credentials-policy.hcl
) with a policy filename of your choosing:sudo nano /etc/openbao/POLICY_FILE
For Example:
sudo nano /etc/openbao/cloud-credentials-policy.hcl
Give the file the following contents, replacing SECRET_MOUNT_PATH (e.g.
cloud-credentials
) with your chosen mount path:- File: POLICY_FILE.hcl
1 2 3
path "SECRET_MOUNT_PATH/*" { capabilities = ["read"] }
For Example:
- File: cloud-credentials-policy.hcl
1 2 3
path "cloud-credentials/*" { capabilities = ["read"] }
This policy grants read access to any secrets within the specified mount path.
When done, press CTRL+X, followed by Y then Enter to save the file and exit
nano
.Add the policy to OpenBao, replacing POLICY_NAME (e.g.
cloud-credentials-policy
) and POLICY_FILE:bao policy write POLICY_NAME /etc/openbao/POLICY_FILE
For Example:
bao policy write cloud-credentials-policy /etc/openbao/cloud-credentials-policy.hcl
Success! Uploaded policy: cloud-credentials-policy
Create an AppRole
Create an AppRole for the application that needs access to the secret, replacing APPROLE_NAME (e.g.
cloud-credential-reader-approle
) and POLICY_NAME:bao write \ auth/approle/role/APPROLE_NAME \ token_policies=POLICY_NAME
For Example:
bao write \ auth/approle/role/cloud-credential-reader-approle \ token_policies=cloud-credentials-policy
Success! Data written to: auth/approle/role/cloud-credential-reader-approle
Verify that the AppRole was written successfully, replacing APPROLE_NAME:
bao read auth/approle/role/APPROLE_NAME
For Example:
bao read auth/approle/role/cloud-credential-reader-approle
Key Value --- ----- bind_secret_id true local_secret_ids false secret_id_bound_cidrs <nil> secret_id_num_uses 0 secret_id_ttl 0s token_bound_cidrs [] token_explicit_max_ttl 0s token_max_ttl 0s token_no_default_policy false token_num_uses 0 token_period 0s token_policies [cloud-credentials-secrets-policy] token_strictly_bind_ip false token_ttl 0s token_type default
Fetch the AppRole ID, replacing APPROLE_NAME:
bao read auth/approle/role/APPROLE_NAME/role-id
For Example:
bao read auth/approle/role/cloud-credential-reader-approle/role-id
Key Value --- ----- role_id c8663988-136f-42de-af40-1dfb94f0c1f6
Generate a Secret ID
Generate a secret ID for the role, replacing APPROLE_NAME:
bao write -f auth/approle/role/APPROLE_NAME/secret-id
For Example:
bao write -f auth/approle/role/cloud-credential-reader-approle/secret-id
Key Value --- ----- secret_id 9b9c27a3-dc27-4eea-921f-773164ec17c7 secret_id_accessor 20abfad4-029f-45e8-a749-ecc041ff3554 secret_id_num_uses 0 secret_id_ttl 0s
Generate an API Token
Generate an API token for the AppRole, supplying the APPROLE_ID (e.g.
c8663988-136f-42de-af40-1dfb94f0c1f6
) and APPROLE_SECRET_ID (e.g.9b9c27a3-dc27-4eea-921f-773164ec17c7
) from the previous commands:bao write auth/approle/login \ role_id="APPROLE_ID" \ secret_id="APPROLE_SECRET_ID"
For Example:
bao write auth/approle/login \ role_id="c8663988-136f-42de-af40-1dfb94f0c1f6" \ secret_id="9b9c27a3-dc27-4eea-921f-773164ec17c7"
Key Value --- ----- token s.Q9n7KPnLKSDoYnVdrHnphEml token_accessor LkSCfmBQVCfL8s2eX4EfnqO4 token_duration 768h token_renewable true token_policies ["cloud-credentials-secrets-policy" "default"] identity_policies [] policies ["cloud-credentials-secrets-policy" "default"] token_meta_role_name cloud-credential-reader-approle
The resulting AppRole token (e.g.
s.Q9n7KPnLKSDoYnVdrHnphEml
) can be used by a user, machine, or service (e.g. an infrastructure management application) to authenticate OpenBao API calls and read the cloud provider credentials secrets.
Storing Secrets
Create the secret store defined in the policy created above.
Enable the KV secrets engine, replacing SECRET_MOUNT_PATH:
bao secrets enable --path=SECRET_MOUNT_PATH kv
For Example:
bao secrets enable --path=cloud-credentials kv
Success! Enabled the kv secrets engine at: cloud-credentials/
The example secret from Oracle Vault contains multiple fields stored within a single JSON object. To mirror this format in OpenBao, store the entire SECRET_VALUE (e.g.
{ "access_key_id": "AKIA513J2DDRAXCFKXF5", "secret_access_key": "XdqD0BPa8aLFaN+EI8SAYm9U4ZYeXQdMGAIjKD/x" }
) in a single SECRET_KEY (e.g.secret
) in the SECRET_MOUNT_PATH under the secret name SECRET_NAME (e.g.provider-a
):bao kv put --mount=SECRET_MOUNT_PATH SECRET_NAME \ "SECRET_KEY"="SECRET_VALUE"
For Example:
bao kv put --mount=cloud-credentials provider-a \ "secret"="{ "access_key_id": "AKIA513J2DDRAXCFKXF5", "secret_access_key": "XdqD0BPa8aLFaN+EI8SAYm9U4ZYeXQdMGAIjKD/x" }"
Success! Data written to: cloud-credentials/provider-a
Retrieving Secrets
While authenticated with the root token, retrieve the secret using the OpenBao CLI (
bao
), replacing SECRET_MOUNT_PATH and SECRET_NAME:bao kv get --mount=SECRET_MOUNT_PATH SECRET_NAME
For Example:
bao kv get --mount=cloud-credentials provider-a
====== Data ====== Key Value --- ----- access_key_id AKIA513J2DDRAXCFKXF5 secret_access_key XdqD0BPa8aLFaN+EI8SAYm9U4ZYeXQdMGAIjKD/x
Test access using the APPROLE_TOKEN (e.g.
s.36Yb3ijEOJbifprhdEiFtPhR
) saved earlier, your SECRET_MOUNT_PATH, and the SECRET_NAME:curl --header "X-Vault-Token: APPROLE_TOKEN" \ --request GET \ $BAO_ADDR/v1/SECRET_MOUNT_PATH/SECRET_NAME \ | jq
For Example:
curl --header "X-Vault-Token: s.36Yb3ijEOJbifprhdEiFtPhR" \ --request GET \ $BAO_ADDR/v1/cloud-credentials/provider-a \ | jq
{ "request_id": "92c5026e-bb14-4e2a-8d70-e94fb005183f", "lease_id": "", "renewable": false, "lease_duration": 2764800, "data": { "access_key_id": "AKIA513J2DDRAXCFKXF5", "secret_access_key": "XdqD0BPa8aLFaN+EI8SAYm9U4ZYeXQdMGAIjKD/x" }, "wrap_info": null, "warnings": null, "auth": null }
The AppRole token can be used by applications or services to retrieve secrets through the OpenBao API.
Production Considerations
When migrating workloads from Oracle Vault across providers to OpenBao on Akamai Cloud, it’s important to ensure your deployment is secure, resilient, and optimized for performance. This section covers key security and high availability considerations to help you maintain a reliable and protected secrets management system.
Security
Security should be a top priority for a production-grade OpenBao deployment. Protecting secrets from unauthorized access, ensuring secure communication, and enforcing strict access controls are essential to maintaining a secure environment.
- Access Control Policies: Use OpenBao’s policy system to enforce RBAC. Define granular policies that grant only the necessary permissions, following the principle of least privilege.
- Audit Logging: Enable detailed audit logs to track all access and modifications to secrets. OpenBao supports multiple logging backends, such as
syslog
and file-based logs, to help monitor suspicious activity. - Secrets Lifecycle Management: Implement automated secrets rotation, revocation, and expiration to ensure secrets do not become stale or overexposed. Consider using dynamic secrets where possible to generate time-limited credentials.
- Securing Network Communication: Configure OpenBao to use TLS to encrypt all communications, ensuring data in transit remains secure. Regularly rotate TLS certificates to prevent expiration-related outages and reduce the risk of compromised certificates.
High Availability
Production-grade OpenBao environments should be deployed with fault tolerance and scalability in mind. OpenBao’s Autopilot mode for high availability ensures that if the active node fails, the cluster automatically elects a new leader, maintaining uptime without manual intervention. However, to enable seamless failover, organizations must configure their deployment correctly, and proactively monitor system health.
- Raft Storage Backend: Use OpenBao’s integrated storage, based on the Raft protocol, to enable distributed data replication across multiple nodes. This ensures data consistency and fault tolerance while reducing reliance on external storage backends. Configure regular Raft snapshots for disaster recovery.
- Deploy Multiple Nodes: OpenBao recommends at least five nodes for a high-availability deployment. The active node handles all requests, while standby nodes remain ready to take over in case of failure.
- Monitor Leader Status: Use
bao operator raft list-peers
to check the cluster’s leader and node statuses. This command helps ensure that standby nodes are correctly registered and ready for failover.
More Information
You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.
This page was originally published on