Policy Model
Nomatron is in early access. Some advanced workflows may not be covered in the public docs.
Nomatron RBAC is easier to understand when you separate three different ideas:
- the permission string;
- the assignment domain; and
- the subject that holds the role.
Those are related, but they are not the same thing.
Permission Strings
Nomatron permissions follow this shape:
<scope>.<resource>[.<subresource>].<action>Examples:
global.users.list
global.roles.assign
organization.apps.read
organization.app_jobs.environments.plan
organization.app_jobs.approval_policy.updateThis means a permission already carries scope information in its name.
That scope is usually either:
globalorganization
Scope Prefixes
The scope prefix tells you which layer of the platform the permission belongs to.
Global permissions
Global permissions are for platform-wide administration and system-wide visibility.
Examples include:
global.users.*global.roles.*global.organizations.*global.license.readglobal.network_agents.*
Organization permissions
Organization permissions are for work that happens inside one organization boundary.
Examples include:
organization.apps.*organization.app_jobs.*organization.variables.*organization.cluster.*organization.operations.*
Domain Values
Permissions tell Nomatron what sort of access a role carries.
The assignment domain tells Nomatron where that role applies.
In practice, the main domain shapes are:
globalorg:<organization_id>
So the mental model is:
- permission string describes the kind of permission;
- domain describes where the assignment is effective.
For example:
- a global administrative role may be assigned in domain
global - an organization role may be assigned in domain
org:<organization_id>
That is how the same RBAC system can support both platform-wide access and tenant-specific access cleanly.
Subjects
A role is always assigned to a subject.
In Nomatron, the common subject forms are:
user:<id>group:<id>
That means roles can be applied:
- directly to individual users; or
- indirectly to all members of a group.
This is one of the reasons groups are so useful operationally. They let you manage team access once and keep the assignment model predictable.
Wildcards
Wildcards exist in the underlying authorization model, but they should be understood carefully.
Conceptually, a wildcard can match:
- any domain;
- any object; or
- any action.
This is useful in the engine and in built-in policy design, but most operators should not think of RBAC as a system where they hand-author wildcard-heavy low-level policy tuples every day.
The safer operator model is:
- use the published permission catalog;
- use built-in roles when they already match the job to be done; and
- create custom roles by choosing explicit permissions rather than inventing broad wildcard rules.
Global Versus Organization Role Design
A role’s scope should match the permissions it contains.
In practice:
- global roles should carry global permissions;
- organization roles should carry organization permissions; and
- assignments should be made in the domain where they are meant to have effect.
This is what keeps RBAC comprehensible in a multi-tenant control plane.
Why This Matters In Practice
When RBAC problems happen, the cause is usually one of these:
- the wrong permission was chosen;
- the right role was assigned in the wrong domain;
- the role was assigned to the wrong subject;
- a group was expected to confer access but membership was wrong; or
- a caller is authenticated correctly but still lacks an effective assignment for the target scope.
Understanding the distinction between permission strings, subjects, and domains makes those problems much easier to debug.