> For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://ibee.ai/docs/llms.txt (full text of every page: https://ibee.ai/docs/llms-full.txt). For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://ibee.ai/docs/_mcp/server.

# Secret Manager quickstart

> Enable IBEE Secret Manager in a workspace, save your first secret in the portal, and read it from the bao or vault CLI with a 60-second session, in about five minutes. Then give your application its own app credential.

In about five minutes you enable Secret Manager in a workspace, save a database password as the secret `payments/db`, and read it back from your terminal with the `bao` CLI. At the end you'll know the three values every client needs: the **address**, the **namespace** and a **token**.

## Before you begin

* A workspace where you can create resources: you're the Owner, an Admin, or a Technical member with access to it. See [Team members & access roles](/docs/platform-fundamentals/team-members-access-roles).
* Your organization's [identity verification](/docs/getting-started/account-setup/verify-your-identity) is complete, and your wallet passes the [billing check](/docs/platform-fundamentals/billing-and-usage#billing-admission-checks).
* A Vault-compatible CLI on your computer: the OpenBao CLI `bao` ([download](https://openbao.org/downloads/)) or HashiCorp's `vault`. Both use the same commands; this page uses `bao`.

## Steps

### Open Secret Manager

Open the workspace. In the sidebar, under **Tools**, click **Secret Manager**.

### Enable it

On **Enable Secret Manager**:

1. **Location**: keep the location shown, for example **Amaravati** (`VGA`). It can't be changed later.
2. **Namespace**: enter a name such as `acme-payments`: 3–32 lowercase letters, digits and single hyphens. Wait for **Available.** The namespace can't be changed later.
3. **Versions to keep**: keep the default (10 per secret) or click **Change**.
4. Check the prices under **Pricing · pay as you go, excl. GST**, then click **Enable Secret Manager**.

The page shows **Setting up Secret Manager**, usually for a few seconds, then **Secret Manager is ready**.

### Create a secret

Click **Create secret**. In **Name**, enter `payments/db`. Under **Key/value pairs**, add the key `username` with the value `app`, click **Add value**, then add the key `password` with a value. Click **Create Secret**.

The toast **Secret created** appears. The secret's first version is `v1`.

### Point your terminal at the workspace

Click the **Connect** tab. Under **Point your client at this workspace**, copy the two lines and run them:

```bash
export VAULT_ADDR=https://secrets.ibee.ai
export VAULT_NAMESPACE=acme-payments
```

Use the address and namespace your **Connect** tab shows: they belong to your workspace and location.

### Get a 60-second CLI session

Under **Sign in**, click **Get a 60-second CLI session**. Copy the `VAULT_TOKEN` line, run it, tick **I have copied the token** and click **Done**.

```bash
export VAULT_TOKEN=<token from the dialog>
```

The token acts as you, lasts 60 seconds and can't be renewed. If it expires, every command answers `permission denied`; get a new session.

### Read the secret

```bash
bao kv get -mount=secret payments/db
```

## Verify it worked

The command prints the secret's metadata, then its data:

```text
====== Data ======
Key         Value
---         -----
password    <your password>
username    app
```

The CLI prints values in plain text, so don't run it where others can see your screen or where the output is logged.

To read one value in a script, use `-field`:

```bash
bao kv get -mount=secret -field=password payments/db
```

The same read over plain HTTP:

```bash
curl -s "$VAULT_ADDR/v1/secret/data/payments/db" \
  -H "X-Vault-Token: $VAULT_TOKEN" \
  -H "X-Vault-Namespace: $VAULT_NAMESPACE" | jq '.data.data'
```

Each read is one billed operation (₹4 per 10,000). See [Pricing](/docs/tools/secret-manager/pricing).

## Give your application its own login

The CLI session is for people. For an application, VM, CI job or Kubernetes cluster, create an **app credential**: it signs in with a Role ID and a Secret ID and gets a token that lasts an hour and renews for up to a day.

```bash
export VAULT_TOKEN=$(bao write -field=token auth/approle/login \
  role_id="$ROLE_ID" secret_id="$SECRET_ID")
bao kv get -mount=secret payments/db
```

See [App credentials](/docs/tools/secret-manager/app-credentials) to create one, and [Read secrets from your app](/docs/tools/secret-manager/connect-apps) for Python, Node.js, `bao agent` and curl.

## Troubleshooting

| You see                                      | What it means                                                                                          | What to do                                                       |
| -------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------- |
| **Enable Secret Manager** stays greyed out   | Prices haven't loaded, or the namespace isn't available yet                                            | Wait for **Available.**, or choose another name                  |
| "This name is reserved. Choose another one." | Words such as `prod`, `dev`, `test`, `api` and names starting with `ibee`, `ws-` or `sm-` are reserved | Use a name with your company or project, such as `acme-payments` |
| **Billing needs attention**                  | Billing refused the enable                                                                             | Click **Add Credits**, then enable again                         |
| `permission denied`                          | The 60-second session expired                                                                          | Get a new session                                                |
| `404` with `namespace not found`             | `VAULT_NAMESPACE` is wrong                                                                             | Copy it again from **Connect**                                   |
| `404` with no body                           | `VAULT_NAMESPACE` isn't set, so the request carries no namespace                                       | Run the `export VAULT_NAMESPACE=…` line                          |

More errors are in [Troubleshooting](/docs/tools/secret-manager/troubleshooting).

## Related pages

* [Concepts](/docs/tools/secret-manager/concepts): namespaces, versions, stores and paths
* [Manage secrets in the portal](/docs/tools/secret-manager/manage-secrets): versions, roll back and delete
* [Pricing](/docs/tools/secret-manager/pricing)