Skip to main content

Identity and directory

Stacklok Enterprise

The directory service is a component of Stacklok Enterprise. For a full comparison of ToolHive Community and Stacklok Enterprise capabilities, see Stacklok Enterprise.

The directory is the platform's record of who your people are and what they are entitled to. Other components ask it rather than keeping their own copies: the MCP gateway asks which connectors a caller may reach, the AI Gateway's budgets are addressed to directory users and groups, and the console's administration screens are views onto it.

What it holds

ThingUsed for
UsersResolving a token to a person, and addressing per-user budgets
Groups and subgroupsGranting connector access, and addressing per-group budgets
Identity providersThe upstream services connectors authenticate against
Managed secretsEncrypted storage for the credentials those connections need
Virtual API keysLong-lived keys that stand in for a person's own token

How identity is resolved

A caller arrives with a token. The directory maps the token's issuer and subject to a user record, then reads that user's group memberships, including groups inherited through subgroups. Downstream components receive the resolved user and group identifiers rather than raw token claims.

A caller with no matching user record resolves to nothing. That is not an error in itself, but controls that key on platform identity will not fire for them, and controls that fail closed will refuse them.

warning

Directory groups are not the same as the OIDC claim groups named in cluster-level authorization policy, and the platform does not keep the two in sync. See The two group models before configuring either.

API surface

Administrative endpoints live under /v1: users, groups, managed-secrets, connector-identity-providers, connections, and keys. Every authenticated caller can read their own equivalent under /v1/me, without an administrative grant.

Administrative routes require the shared platform admin grant. There is no separate role per module, so the same grant covers directory administration and budget administration.

Contents