Skip to main content
Connect your HashiCorp Vault cluster to enable Oliver (Security Professional) to read KV secrets, retrieve dynamic database and cloud credentials, and inspect policies, tokens, audit devices, and cluster health — all through the vault CLI running in CloudThinker’s secure sandbox.

Supported platforms

PlatformSupport
Vault open-sourceSelf-hosted, recent releases
Vault EnterpriseNamespaces supported
HCP Vault DedicatedSet namespace (default admin)

Prerequisites

  1. A reachable Vault address — the sandbox connects to VAULT_ADDR over the network, not your laptop. Use a public DNS name or HCP endpoint, not localhost or a private address the sandbox cannot route to.
  2. Credentials — a Vault token, or an AppRole (role_id + secret_id), backed by a policy that grants read access to the paths you want agents to query.
  3. (Enterprise / HCP only) The namespace the secrets live in.

Setup

Choose the authentication method that fits your deployment. AppRole is recommended for production because the secret_id can be rotated without replacing a long-lived token.
1

Write a read policy

Grant read access to only the paths CloudThinker should reach:
2

Create a token

Bind a token to that policy:
Copy the token value from the output.
3

Add the connection in CloudThinker

Navigate to Connections → HashiCorp Vault and enter:
  • VAULT_ADDR: your Vault URL including scheme and port, e.g. https://vault.example.com:8200
  • VAULT_NAMESPACE: leave blank for open-source Vault; set it for HCP (admin) or Enterprise namespaces
  • VAULT_AUTH_METHOD: Token
  • VAULT_TOKEN: the token from the previous step
Click Connect. CloudThinker verifies the token with vault token lookup and shows a Connected status.
Tokens and secret IDs are redacted from any error message CloudThinker shows during the health check.

Connection details

FieldRequiredNotes
VAULT_ADDRYesFull URL including scheme, e.g. https://vault.example.com:8200
VAULT_NAMESPACENoHCP Vault Dedicated (admin) and Vault Enterprise namespace deployments only
VAULT_AUTH_METHODYestoken or approle
VAULT_TOKENToken authShown when the auth method is Token
VAULT_ROLE_IDAppRoleShown when the auth method is AppRole
VAULT_SECRET_IDAppRoleShown when the auth method is AppRole

Required permissions

Attach a policy to the token or AppRole that grants read and list on the secret paths Oliver needs to query. Vault’s default-deny means Oliver can never exceed the policy attached to your credential.
Start with the minimum read paths and add create/update capabilities only if you want Oliver to run write workflows.

Agent capabilities

Oliver’s actions are bounded by the policy on your token or AppRole. Read operations run automatically; any action that mutates Vault or issues a lease requires approval in CloudThinker.
CapabilityDescription
Secret readsRead and list KV v1/v2 secret paths and values
Health inspectionCheck seal status, mounted secret engines, and auth methods
Policy auditList and read policies, audit devices, and token metadata
Dynamic credentialsGenerate short-lived database and cloud credentials — requires approval
Secret writesCreate, update, and delete KV secrets and versions — requires approval
Lease managementRevoke or renew credential leases — requires approval

Verify the connection

Example prompts

Troubleshooting

The vault CLI runs inside CloudThinker’s sandbox, not on your machine. localhost, 127.0.0.1, and host.docker.internal resolve to the sandbox itself and fail with dial tcp ... no such host or connection refused. Point VAULT_ADDR at a public DNS name or HCP Vault Dedicated endpoint. A Vault behind a firewall or VPN must be exposed through a public endpoint, an allowlisted egress, or a network bridge first.
vault needs the full URL including scheme. vault.example.com:8200 (no scheme) causes a connection error. Use https://vault.example.com:8200, or http://... for a dev-mode server.
The token or AppRole policy does not grant access to the requested path. Check the policy with vault token lookup and ensure it covers the paths the agent queries. For example, to read kv/data/production/* the policy needs capabilities = ["read", "list"] on that path.
HCP Vault Dedicated and Enterprise multi-namespace deployments require VAULT_NAMESPACE. For HCP the default is admin. If you see no handler for route or permission denied on HCP or Enterprise, confirm the namespace is set.
A secret_id has a TTL (secret_id_ttl). Once it expires, auth fails with invalid secret_id. Generate a new one, update VAULT_SECRET_ID, and reconnect:
vault status shows Sealed: true and no operation succeeds. A Vault operator must unseal the cluster (vault operator unseal) before agents can read or write.

Security

  • Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
  • Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
  • Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
  • Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
  • Prefer AppRole in production — rotate the secret_id without replacing a long-lived token.
  • Gate write operations — keep write paths approval-gated so credential issuance and mutations always require human sign-off.

Oliver Agent

Security and compliance agent

Approval Controls

Gate write operations behind approval