Subscriptions and tenants
LM Foundry is multi-tenant. The subscription is the unit of isolation: every knowledge base, agent, tool, prompt, conversation and crawl belongs to exactly one subscription.
The model
Section titled “The model”tenant ─┬─ subscription "default" ─┬─ members
│ └─ knowledge bases, agents, tools, prompts, ...
└─ subscription "support" ─┬─ members
└─ ...- A tenant is an organisation. It has one or more subscriptions.
- A subscription has a globally unique slug (for example
default) and an immutable id. Records store the ids; the slug only names the subscription in URLs. - A member is a user who belongs to a subscription. Users come from your OpenID Connect provider.
The subscription is in every path
Section titled “The subscription is in every path”Every API call carries the subscription slug:
/api/<service>/v1/<subscription>/...For example /api/agent/v1/default/.... Before any controller runs, a shared filter checks that the caller is a member of that subscription. A caller who isn’t a member gets 404, so the API doesn’t reveal which subscriptions exist. Foundry UI asks which subscriptions the signed-in user can open and opens one before it calls anything else.
How data stays separate
Section titled “How data stays separate”- Stores are pooled by default: one database per service, with every record carrying its tenant and subscription ids, and every query filtering on the subscription. A build-time architecture test fails when code reads a tenant-owned record by id alone.
- Vector chunks carry the subscription and knowledge base, and every search filters on both.
- Uploaded files and crawled pages are stored under a per-tenant prefix.
- Records shared as “public” are visible to the whole subscription and nothing wider. Nothing is shared across tenants.
- Where a store lives is resolved from configuration, so a deployment can run single-tenant on its own infrastructure without code changes.
The decisions behind this are ADR-0010 and ADR-0011 in Architecture decisions.
In development
Section titled “In development”These tenancy features are being built and aren’t in a release yet:
- Roles: tenant
OWNERandADMIN; subscriptionADMIN,MEMBERand read-onlyVIEWER. - Audit: refusals and role and grant changes are recorded, and subscription admins can read them.
- Break-glass access: an operator can open a time-boxed, read-only, audited elevation for one subscription. Platform operators have no standing access to tenant data.
- Usage and quotas: tokens, requests, indexed chunks and storage are metered per subscription; over a budget or rate the API answers 402 or 429.
- Lifecycle: subscriptions can be suspended and, after a retention window, deleted, with every service removing its part of the data.