The model
Everyday read comes from a default binding that gives Everyone the Viewer
role. Each tenant starts with it and can remove it.
Actions and scope
Child resources, such as a Filament run or an Alchemy invocation, are their
own kinds at tenant scope. Control over one child goes through its parent,
which the product’s parent resolver finds. A binding on one resource applies
only the role’s permissions for that resource’s kind.
Roles
A custom role is a name, a description and a list of kind patterns paired
with actions.
- A kind pattern is an exact kind such as
filament.pipeline, or a domain wildcard such asfilament.*. Wildcards expand when a check runs, so new kinds are covered automatically. readandcreatetake effect only through bindings across the tenant. A role such as Pipeline operator, withreadandinvokeon pipelines, still works for a tenant that removed the default Viewer binding.- Admin-only kinds and
latchkey.*kinds can never appear in a custom role, and patterns never match them, even for a kind that becomes admin only later. Admin only always means Admin only. - The names
admin,creatorandviewerare reserved, as is the group name Everyone. - An edit takes effect at once on every binding of the role, bumps the access revision and is audited.
- A role with bindings cannot be deleted. Remove its bindings first.
How a check decides
Every decision carries the access revision it was made at.ExplainAccess. Products return a plain PERMISSION_DENIED to end
users.
A worked example
One custom role, bound to one resource, lets Derek edit and run pipelineabc123 and only read everything else.
- The custom role Pipeline editor holds
updateandinvokeonfilament.pipeline. - A binding gives
user:derekthe Pipeline editor role onfilament.pipeline/abc123. It is valid becauseupdateandinvokecan be held on one resource. - Derek is an active user synced from the directory, so he is in Everyone
and holds Viewer through the default binding. He has no other bindings and
no access to the connection
prod-db.