Component ยท Shared or other
Organization (OU = namespace)
What it is
An organization is the top-level tenant. Projects, environments, LLM providers, gateways and agents all belong to one. In ThunderID an organization is an organization unit (OU). Agent Manager learns which one you belong to from two claims in your token, ouId (a stable id) and ouHandle (a short name), and refuses a request that lacks either.
It is a company badge. The sign on the door may say any company name, but the guard reads the badge in your hand.
Why it exists
One installation can serve several organizations, and every request has to be limited to the caller's own. Taking the organization from the signed token makes that hard to fake.
How it works
- The middleware requires ouId and ouHandle in the token and stores them as the resolved organization for the request.
- The {orgName} part of the URL path is for routing only. The code never reads it to choose an organization, so a token used on another organization's path still acts on its own.
- Handlers get the organization from the request context, never from the path.
- Calls to OpenChoreo use one configured namespace (OPEN_CHOREO_DEFAULT_NAMESPACE, default value default). In this code the organization id is not used to pick the namespace.
- On Choreo Cloud the console agent also uses the token's ouId as its tenant.
Identity and access
Both claims come from the token issued by ThunderID or the platform IdP. The token's signature is checked before the claims are used.
Key facts
- Token claims
- ouId, ouHandle
- Missing claim
- 403, request refused
- URL org segment
- Routing only, never trusted
- OpenChoreo namespace
- OPEN_CHOREO_DEFAULT_NAMESPACE (default: default)
- Contains
- Projects, environments, providers, gateways
Inside and around
Contains: Project (OC Project), Environment (OC Environment)