Workspaces¶
A workspace is the boundary inside an organization, and the scope key the rest
of the platform runs on. Projects, flows, packages, builds, models, secrets,
runs, policy attachments, service accounts, and evidence are all addressed by
workspace_uuid.
The record¶
| Field | Source | Constraint |
|---|---|---|
workspace_uuid |
Generated at creation | Unique, and the key every scoped record carries |
organization_uuid |
Resolved from the organization you name | Fixed at creation |
name |
You choose it | Unique within its organization, permanent |
metadata |
You supply it | Free-form JSON object, defaults to {} |
created_at |
Server clock | Set once |
Names repeat across organizations, so two organizations may each hold a
workspace called payments. Resolution therefore runs organization first:
What the workspace key reaches¶
flowchart LR
W["Workspace payments<br/>workspace_uuid"]
W --> A["Projects, flows, agents"]
W --> B["Packages, builds, capsules"]
W --> C["Runs and their evidence"]
W --> D["Secrets and model bindings"]
W --> E["Service accounts"]
W --> F["Policy attachments below<br/>organization level"]
W --> G["Audit, logs,<br/>observability records"]
Authorisation is checked against the workspace on each of these, so an actor
bound only in risk is refused in payments:
Three things reach across the boundary¶
Published blocks. Resolution searches every workspace in the organization,
so a block published in risk imports from payments. See
Organizations.
Organization role bindings. A workspace check unions the actor's workspace roles with their roles in that workspace's organization, including workspaces created after the binding was written. See Roles and bindings.
Audit fan-out. An organization audit query iterates the organization's workspaces and merges their records.
The active workspace¶
Most commands take no scope argument and read the active context:
config set resolves the name against the API and stores the name and the UUID
together, so the profile carries the identifier the transport needs while you
keep typing the name.
Commands that declare --workspace accept a per-command override:
With no workspace set and exactly one workspace in the active organization, that workspace resolves automatically. From the second workspace onwards the scope is required:
workspace scope is required (set active context with `xratu config set workspace <name-or-uuid>` or pass --workspace)
Workspace metadata in shared deployments¶
On a deployment whose tenancy policy puts dispatch in the shared profile,
workspace metadata carries tenant_scope and dataplane_pool, and a runtime
reaches only the workspaces whose pair matches its own enrollment. See
Tenant scope.
Properties¶
organization_uuid is fixed at creation. A workspace belongs to the
organization it was created in for its whole life.
The name is permanent, and the API surface is create, get, and list.
A workspace produces one kind of separation: an authorisation edge around its runs, secrets, and evidence. Code published from it stays organization-wide.
To create one, see Create your first organization and workspace.