Agentic AI / Vault

OAuth2 Secrets in Vault

Store a third-party OAuth2 client ID and secret in the vault, with its token endpoint and scopes. Assign it to a regular, service or machine user, with an expiry and a subset of the scopes. They ask the vault and get back an access token, never the secret.

Available now in WebFrolic.

Why it matters

A client secret pasted into an agent’s config is a secret you no longer control.

Agents and integrations need third-party API access. Giving each one the client secret means it can mint any token, for any scope, forever, and you cannot tell who did. Brokering tokens through the vault keeps the secret in one place and each use accountable.

Secret never leaves

Tokens, not credentials

Users receive an access token for their scopes. The client ID and secret are never exposed.

Scoped and expiring

Least privilege per user

Each assignment grants a subset of the OAuth2 scopes and has an expiry, so access ends on its own.

Traceable

Every request recorded

Each access-token request is mapped to the user who made it, and tokens are cached per user to avoid excess calls to the provider.

How it works

From stored secret to scoped token.

StepWhat happensControl
StoreAn administrator saves the client ID, secret, token endpoint and available scopes in Vault → OAuth2 Secret.Secrets are write-only and masked.
AssignThe secret is assigned to a regular, service or machine user, with an expiry and a subset of the scopes. System users cannot be assigned OAuth2 secrets.Least privilege and time limits per assignment.
RequestThe user queries the vault and receives an access token for their assigned scopes.Network firewall rules govern where requests may come from.
Cache and recordTokens are cached per user and every request is recorded.Fewer provider calls; full traceability.

Before rollout

Questions worth answering.

Settle these first and the rollout is mostly configuration.

  • List the third-party APIs your agents and integrations call, and the scopes each needs.
  • Decide which users and agents may receive tokens for each, and for how long.
  • Set network firewall rules for token retrieval.
  • Remove client secrets from agent and integration configuration once the vault holds them.
  • Review token requests in the audit trail.

Related capabilities

Explore what connects to this.

These capabilities are usually configured together.

Evaluate with your scenario

Start with a concrete workflow.

Share the identities, resource boundary and decision you want to test. The walkthrough can focus on the relevant behavior rather than a generic feature tour.