Skip to content

Kinds document

The tree’s levels, in the control-plane config. Every node in identity is one of these kinds. Concept: the model, config.

kinds:
organization:
path: /orgs/{organization}
list_permission: organization:read
project:
parent: organization
path: /projects/{project}
list_permission: project:read
environment:
parent: project
path: /envs/{environment}
list_permission: project:read # listed to whoever can read its project
Field Rule
kind name Lowercase identifier, [a-z][a-z0-9_]*, max 32. Not public, member or user. Names the kind in route scopes, path params, placeholders ({project.id}), headers (X-Plat5-Project-Id), events (kind: project) and audit. Fixed once nodes exist: a rename reads as a remove plus an add
parent The one kind a node sits under. Omitted for a root
path Required. The kind’s piece of every public path: /<collection>/{<kind name>}, such as /projects/{project}. The collection has the slug shape. Plat5 joins the pieces root first, so a project’s routes sit under /orgs/{organization}/projects/{project}
list_permission Required. The permission that shows a node of this kind in a list, live or deleted (lists)
bind_creator Whether creating a node of this kind binds its creator with creator_role when roles is configured (forbidden when authorizer is configured without roles, assigning). Default true. On a root kind, a caller with X-Plat5-User-Id always gets a member in the new tree

Plat5 derives no permission names from a kind: routes name theirs literally. A kind reached through another kind’s permissions says so in its routes and its list_permission, as environment does above with project:*.

Each kind has one chain of kinds, so each node has one public path. Slugs are unique only within their parent, which is why the pieces nest in parent order. The kind’s param, {project}, takes a slug or an id; it never reaches a service.

Other top-level settings: settings. Slug shape, uniqueness and reuse are fixed rules, not config (concepts/model.md).