The owner role¶
owner is the role the control plane binds to you automatically when you create
an organization or a workspace. It is the only binding the system writes on its
own, and the first rights any actor holds.
Why it attaches at creation¶
Authorisation reads role bindings, and a newly created scope starts with none. The creation path writes the first one in the same call:
store_tenancy_organizations_entry.create_organization({...})
if x_actor_id != "system":
organization_rbac_bindings_store_entry.upsert_org_rbac_binding(
organization_uuid=organization_uuid,
actor_id=x_actor_id,
role="owner",
)
Workspace creation does the same at workspace scope. The binding is written
after the record and before the response, so by the time you see
"status": "accepted" the binding exists.
sequenceDiagram
participant A as Actor
participant CP as Control plane
participant T as Tenancy store
participant R as Binding store
A->>CP: create organization "acme"
CP->>CP: authorize organization.create (always true)
CP->>T: insert organization row
CP->>R: upsert owner binding for this actor
CP->>CP: append audit record
CP-->>A: organization_uuid, name, accepted
What owner grants¶
Roles map to permission sets, and this set is closed. The five names below are all the control plane recognises:
| Role | Permissions |
|---|---|
owner |
*, every action at the scope |
admin |
*, every action at the scope |
operator |
Create and read organizations, workspaces, service accounts and tokens; bind roles; create, step and read runs; read flows, policy, audit, capabilities and bindings; run preflight; decide approvals |
developer |
Create and read flows, capabilities, bindings, workspaces, organizations, service accounts and run operations; issue service-account tokens; bind roles; read policy and audit |
viewer |
Read only: organizations, workspaces, runs, flows, policy, audit, service accounts, capabilities, bindings |
owner and admin are permission-identical. Both resolve to *, and
authorisation treats them the same. owner differs only in being the role the
system writes at creation.
developer and operator both include rbac.bind. An actor holding either can
bind roles at that scope, including a higher role for themselves. viewer is
the only role that cannot escalate.
Scope, not inheritance¶
An owner binding is written at exactly one scope.
| You create | Binding written at | Reaches |
|---|---|---|
Organization acme |
Organization acme |
Every workspace in acme, present and future |
Workspace payments |
Workspace payments |
That workspace only |
The asymmetry is in how authorisation resolves. A workspace check unions the
actor's workspace roles with their roles in that workspace's organization, so
organization owner reaches down. A workspace binding applies to that workspace
alone.
Creating both objects yourself therefore leaves two bindings, and the organization binding already covers the workspace.
The system-actor exception¶
The automatic binding is skipped when the acting actor is system.
An organization provisioned by a system principal is visible to system, which
lists every organization, and becomes visible to a person once a binding is
written for them.
The first-install root-tenancy contract therefore carries an explicit owner:
root_tenancy:
contract_version: bootstrap.root_tenancy.xratu/v1
create_if_missing: true
organization:
name: acme
workspace:
name: payments
initial_owner_binding:
actor_id: user:alice@acme.example
organization_role: owner
workspace_role: owner
The contract validates that actor_id is present and is a real actor, then
writes both bindings itself. Include initial_owner_binding so the resulting
scopes have an owner from the first moment.
Bindings are additive and permanent¶
A binding is identified by its scope, its actor and its role together, so a second bind for the same actor adds a grant alongside the first rather than replacing it.
Authorisation then unions every role the actor holds at the scope. Two consequences follow:
- Binding a lower role does not demote. An owner who is later bound
vieweris an owner and a viewer, and*wins. - A binding is permanent. The binding API surface is two write endpoints,
POST /v1/rbac/bindingsandPOST /v1/rbac/organization-bindings.
A binding stands for the life of the scope, so grant the narrowest role that works. Credentials are revocable where roles are permanent. See Token lifetime, renewal, and revocation.
Ownership is a binding¶
Ownership lives in the binding tables rather than on the organization or
workspace record, and is therefore plural: bind owner to three actors and the
scope has three owners, each indistinguishable from the one the system wrote.
Next¶
- Bind additional RBAC grants access to everyone else
- Actors covers what an actor id is and where it comes from