Skip to main content
A vault holds the connections your agents use to reach outside services: a Slack workspace, a GitHub account, a Stripe account. An agent never sees the underlying credentials. When a step calls a service, JoyStream mints a short-lived token scoped to that service and that call, and the connector gateway makes the authenticated request. See How a credential reaches a service.

Three vaults

Each credential records its provider, a status (ACTIVE, NEEDS_REAUTH, or REVOKED), and who connected it. None of these fields is a token.

Which connection an agent gets

When an agent in a workspace needs a provider, JoyStream checks these in order and uses the first active match: If nothing matches, the run stops and names the provider to connect. It does not guess. Two consequences follow:
  • A workspace connection shadows the org one. A team can connect its own Slack and agents in that workspace use it, even if the org also has Slack connected. The web UI marks the org credential as shadowed in that workspace.
  • Personal connections stay personal. An agent in a team workspace never falls back to the personal connection of whoever built or runs it. A personal connection is used only when the agent runs in your personal workspace, where the personal vault is the workspace vault.
A bound credential that has been removed or revoked fails the run rather than silently falling through to the next tier, so an agent never runs under a credential nobody chose.
This prints the walk tier by tier, so you can see which credential an agent will get and why.

Org credential audit

An org owner or admin can see every service credential connected anywhere in their organization, across all workspaces — including workspaces they are not personally a member of. This is a read-and-inspect surface: you see that a credential exists and its metadata, never the secret value. An organization is made of workspaces — the org itself, plus its teams — and each workspace can hold its own credentials. Without the audit there is no single place to answer “what is connected across my whole org, and where?” The audit groups credentials by availability scope:
  • Org-wide — credentials in the org vault that every workspace can use.
  • Selected workspaces — credentials restricted to specific workspaces. A credential restricted to two workspaces appears under each of those workspace groups.
For each credential you see metadata only: provider, type, status, scope, the owning workspace, and who connected it.
Values are never exposed. No surface in this feature returns token material — not the API, not the CLI, not the UI.Personal vaults are excluded. Credentials a user stored in their personal vault are never visible to org admins.Only an org owner or admin can audit. A non-admin org member sees only credentials for workspaces they belong to.
Use the Vault section of the organization’s Hub in the web UI, or jstm vault audit from the CLI.
The Organization Vault section of the Hub, listing connected providers with their scope and a Connect Provider button

The Organization Vault in the Hub, with its Connect Provider control.

Credential scope

Every credential in the org vault has a scope that decides which workspaces in the org can use it:
  • Org-wide (all_workspaces) — available to every workspace in the org.
  • Selected workspaces (selected_workspaces) — available only to the workspaces you pick.
The labels Org-wide and Selected workspaces are what you see in the web UI and in CLI human output. The underlying values all_workspaces and selected_workspaces appear in --json and API payloads.
Selected requires at least one workspace. Choosing Selected workspaces without naming any is rejected up front — the UI keeps the picker open, and the CLI fails with a clear message instead of saving an empty selection. Scope supersedes the previous per-workspace sharing model. The older vault grant and vault revoke commands have been removed. To read a credential’s current scope and its selected workspaces, use jstm vault grant list. Only an org owner or admin can set a credential’s scope, and only credentials in the org vault are scopeable. Attempting to scope a workspace or personal vault credential is rejected.

How a credential reaches a service

Tools reach their provider through the connector gateway — one destination for every tool call, rather than a separate server per provider. The gateway is the only component that ever holds a provider secret. Three properties of this are worth knowing when you build agents: JoyStream never holds your provider secret. When you connect a service, the OAuth grant is stored by the connection provider. JoyStream records only that the connection exists, which vault owns it, its provider key, and its status. Nothing in a vault row is a token. The connector’s schema is authoritative. Parameter names come from the provider, not from a skill’s own documentation — which routinely disagrees with it, channel_id where Slack actually wants channelId. The action’s schema is captured at build time and frozen into the package, so an agent built today keeps sending exactly the fields it was tested with. At dispatch, parameters are narrowed to the fields that schema declares, and an unexpected field is rejected rather than quietly ignored. Execution credentials are minted, never stored. When a step calls a service, the executor mints a token scoped to that one service and the connection that resolved for it, for that one dispatch. The token expires a few minutes after minting and is never written anywhere. The agent receives only the result of the call. It never holds the authorization you granted when you connected the service, so a prompt injection or a misbehaving skill cannot read or exfiltrate it. Authoring gets a different, weaker token: it can browse the catalog of providers and actions, and it cannot execute anything or enumerate your connections.

See also