Secret Manager concepts
Secret Manager gives each workspace its own isolated store, reached at an address with a namespace. Inside, secrets live at paths such as payments/db, and every save adds a version. This page explains each idea once, with the rules that apply to it. For the numbers, see Limits.
The workspace is the environment
Each workspace that enables Secret Manager gets its own store. Nothing is shared between workspaces.
Use one workspace per environment, for example Production and Staging, and keep the same paths in each: payments/db in both, not prod/payments/db and staging/payments/db. Your application then reads the same path everywhere, and only the namespace (and the app credential) changes between environments. The portal doesn’t accept a name whose first folder is prod, production, dev, development, staging, stage or test, and says “Leave out the environment: the workspace already is the environment”.
Namespace
The namespace is the name of your workspace’s store. You choose it when you enable Secret Manager, and every client sends it with every request: as the VAULT_NAMESPACE (or BAO_NAMESPACE) environment variable for the CLI, the namespace setting of an SDK, or the X-Vault-Namespace header over HTTP.
Workspaces enabled before namespaces could be chosen use ws-<workspace ID>. Renaming a workspace doesn’t change its namespace.
Location and address
You choose a location, for example Amaravati (VGA), when you enable Secret Manager. Your secrets are stored there, and the location can’t be changed later.
The address is the HTTPS endpoint clients connect to, for example https://secrets.ibee.ai. The portal shows it as VAULT_ADDR on the Connect tab. Always copy it from there rather than hard-coding it.
If your workspace uses more than one location, each location is a separate store with its own secrets, address and app credentials. Nothing is copied between locations.
Stores: secret/ and ibee-managed/
In the CLI, pick the store with -mount=secret or -mount=ibee-managed. Over HTTP, the store is the first part of the path: /v1/secret/data/payments/db.
Paths and folders
A secret’s path, such as payments/db, is its name. Slashes divide it into folders, which the portal shows as a folder tree; folders exist only as part of a path.
- Up to 20 folder levels and 512 characters in all.
- Each part: 1–128 characters from letters, digits,
_,.and-, starting with a letter, digit or_. A part can’t be.or... - Case is kept:
Payments/dbandpayments/dbare different secrets. - The path can’t be changed after you create the secret. To rename, create a new secret and delete the old one.
A good layout is <application>/<purpose>: payments/db, payments/stripe, billing/smtp. An app credential can be limited to one folder, such as payments, so group each application’s secrets under one folder.
What a secret holds
A secret is a set of key/value pairs, stored as one JSON object:
A read returns the whole object, so keep values that are used together in one secret: one read gives your app everything it needs to connect. A secret can be up to 48 KiB. Store large files in Object Storage and keep only the access details here.
Versions
Every save creates a new version, numbered 1, 2, 3…. Reads return the latest version unless you ask for an older one (bao kv get -version=2 …).
- Versions to keep. Each secret keeps its last N versions. N is the workspace default you choose when you enable Secret Manager (1–1,000; 10 if you don’t change it). The workspace default can’t be changed later, but you can set a different number on any secret.
- The oldest goes first. When a save would exceed the limit, the oldest version is destroyed permanently.
- Every kept version is billed, including deleted ones that haven’t been destroyed. See Pricing.
Check-and-set
Check-and-set (CAS) stops two people or programs from overwriting each other’s changes. A write says which version it expects to replace:
The portal always uses check-and-set. If someone else saved first, it shows Someone else saved a newer version and saves nothing.
Delete, undelete, destroy and roll back
Destroying or deleting the latest version means apps reading the secret fail until you save a new version.
Hide versions after (a secret setting, also called delete_version_after) deletes versions automatically once they are older than 30 or 90 days. Deleted versions are still stored and billed, so it isn’t a way to save money; lower Versions to keep instead.
Who can sign in
Workspace states
A workspace becomes read-only or suspended when IBEE restricts the organization, for example over unpaid billing. It returns to Active when the restriction is lifted; no client changes are needed.
