Skip to navigation

Troubleshooting Secret Manager

Find the message you see in the section for where you saw it: an application or the CLI (the Vault API at your workspace’s address), the IBEE API (api.ibee.ai), or the portal. Vault API errors look like {"errors":["…"]}; IBEE API errors look like {"error":"…","message":"…"}.

Applications, the CLI and External Secrets (Vault API)

You seeWhat it meansWhat to do
404 with an empty bodyThe request has no X-Vault-Namespace header, or uses a path that isn’t available (such as sys/… or the web UI)Set VAULT_NAMESPACE (or the header). Use only the available paths.
404 namespace not foundThe namespace doesn’t exist, or has a typoCopy it from Secret Manager → Connect
404 with "errors":[] on a readNo secret at that path, or the wrong store (secret vs ibee-managed)Check the path and -mount
404 on a read, with deletion_time set in the metadataThe version you read (the latest, by default) is deletedUndelete it, or save a new version
403 permission denied right after it workedThe token expired (60 seconds for a CLI session; 1 hour, renewable to 24 hours, for an app)Sign in again, or renew sooner
403 permission denied on one pathThe app credential’s folder doesn’t include it, it’s in ibee-managed/ and the credential has a folder, or the credential is read only and you wroteUse a credential with the right folder and access
403 permission denied on destroy or metadata delete from an appApp credentials can’t destroy versions or delete secretsDo it in the portal or with the IBEE API
403 on every write, reads still workThe workspace is read-only (restricted)See Workspace states
403 on every readThe workspace is suspendedSee Workspace states
403 on login, from bao agentThe namespace is set only in the agent’s vault {} block, so the login goes to the root namespacePut namespace inside method "approle"
400 on auth/approle/login about the role or secret IDThe Secret ID was replaced or the credential revoked, or a value was copied wronglyIssue a new Secret ID and update the app
400 check-and-set parameter did not match the current versionSomeone saved a newer version firstRead again and retry with the current version
400 check-and-set parameter required for this callThe secret has Require check-and-set onSend cas (-cas=N in the CLI, options.cas over HTTP)
413 or a refused write for sizeThe request is over 64 KiBKeep secrets under 48 KiB; store files in Object Storage
429A rate limit: reads 100/s per namespace and IP, writes and listing 10/s per namespace, logins 5/s per IPWait at least a second and retry; cache reads; raise External Secrets’ refreshInterval
503 OpenBao leader is changing; retry the requestA brief server handoverRetry after a moment
A request over http:// gets 404Only HTTPS is servedUse https://
x509 or certificate errorsThe address is wrong, or something on your network is intercepting TLSUse the address from Connect. Its certificate is publicly trusted, so no CA file is needed.

IBEE API

errorStatusWhat it meansWhat to do
insufficient_scope403The token lacks secret-manager.read or secret-manager.write (required_scope says which)Create a token with Secret Manager → Read or Edit
access_denied, or another 403403The token owner’s workspace role doesn’t allow itUse a token owned by someone with the right role
verification_required403Identity verification isn’t completeComplete verification
billing_denied402Billing refused the enable; billing_reason says whyAdd credits or resolve the billing issue, then enable again
billing_unavailable503Billing couldn’t be checked; nothing was chargedTry again in a few minutes
workspace_not_enabled404Secret Manager isn’t enabled in this workspaceEnable it
workspace_pending409Setup is in progressPoll the operation
lifecycle_pending409A workspace change is being appliedRetry shortly
workspace_restricted403The workspace is read-onlyYou can read and clean up only
workspace_suspended403The workspace is suspendedValues can’t be read
already_enabled409Secret Manager is already onRead GET /secret-manager/workspace
namespace_taken409Another workspace has the namespaceChoose another
namespace_locked409An earlier attempt may have reserved a different nameRetry with the original namespace
namespace_invalid422The name breaks the rules3–32 lowercase letters, digits and single hyphens
namespace_reserved422The name is reservedChoose another
secret_not_found, not_found404No secret or version at that pathCheck the path and version
version_conflict409The secret changed; reload and retryRead the latest version, then retry
secret_too_large413Over 48 KiBSplit the secret
invalid_path422The path breaks the path rulesFix the path
invalid_metadata422Too many or too long metadata pairs, or a bad delete_version_afterSee Limits
invalid_version422Send 1–100 positive version numbersFix the versions list
invalid_name422The app credential name breaks the rulesLetters, digits, ., _ and -, up to 64
invalid_cursor422The search cursor is staleStart the search again
app_credential_limit409The workspace has 50 app credentialsRevoke unused ones
app_credential_name_taken409The name is in useChoose another
app_credential_pending409The credential is still being set upWait a few seconds
app_credential_revoked409The credential is revokedCreate a new one
app_credential_not_found, operation_not_found404Wrong ID, or another workspace’sCheck the ID and workspace_id
idempotency_conflict409The Idempotency-Key was used for a different requestUse a new key
invalid_request422A field is missing or out of rangeCheck the request against the API reference
secret_manager_unavailable, secret_manager_timeout503, 504A temporary problemRetry with backoff

An enable that fails after 202 ends with status: failed and an error_code on the operation, for example billing_denied. Fix the cause and enable again with a new Idempotency-Key and the same namespace.

Portal

You seeWhat it meansWhat to do
Enable Secret Manager greyed outPrices haven’t loaded, the namespace isn’t available yet, or the versions number is invalidWait, or fix the field
”Read-only access. Ask a workspace admin to enable it.”You’re a CollaboratorAsk the Owner, an Admin or a Technical member
Complete KYC or Verify Identity on the buttonIdentity verification isn’t completeComplete verification
Billing needs attentionBilling refused the enableClick Add Credits, then enable again
Setup didn’t finishSetup failed; the message says whyFollow it: Try again, Billing options or Choose another name
”Hasn’t started yet…”Setup hasn’t started after a few minutesContact support with the Reference for support
”A secret with this name already exists…”The path is takenOpen the existing secret, or choose another name
”Leave out the environment: the workspace already is the environment”The name starts with prod, dev, staging, test or similarRemove that first folder
”This secret is larger than 48 KiB…”Too largeSplit it, or keep the file in Object Storage
Someone else saved a newer versionAnother save happened firstClick Load latest and try again
”Values cannot be read while this workspace is suspended.”The workspace is suspendedSee Workspace states
Read-only or Suspended chip in the headerThe workspace is restricted or suspendedSee Workspace states
A new secret isn’t in search resultsSearch catches up within a minuteOpen its folder
”This workspace has the most app credentials”50 credentials existRevoke unused ones

Still stuck

Contact support with the time, the workspace, the request ID (request_id from the IBEE API) or the portal’s Reference for support, and the exact message. Never send a token, Secret ID or secret value.