Skip to main content
Deny is the default. A request is allowed only when a binding gives the caller a role that holds the exact kind and action the request needs, at a scope that covers the resource.

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 as filament.*. Wildcards expand when a check runs, so new kinds are covered automatically.
  • read and create take effect only through bindings across the tenant. A role such as Pipeline operator, with read and invoke on 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, creator and viewer are 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.
Errors mean a misconfigured product. The interceptor treats them as a deny but counts them separately, so they show up in metrics rather than as user reports. Latchkey resolves groups itself and callers never send them. Each decision returns the binding that allowed it or a deny reason, for the audit trail and 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 pipeline abc123 and only read everything else.
  • The custom role Pipeline editor holds update and invoke on filament.pipeline.
  • A binding gives user:derek the Pipeline editor role on filament.pipeline/abc123. It is valid because update and invoke can 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.