Examples And Patterns
Nomatron is in early access. Some advanced workflows may not be covered in the public docs.
RBAC becomes much easier to use once you move from abstract permissions to repeatable patterns.
This page gives practical examples you can adapt when designing a Nomatron access model.
Pattern 1: Keep Global Administration Small
Most installations should keep global access very limited.
A healthy default is:
- a very small trusted operator group with global administrative access;
- a separate access-administration capability for identity and RBAC work; and
- read-only audit visibility for security or governance reviewers.
This keeps platform-wide blast radius under control.
Good Shape
platform-adminassigned only to a small trusted operator groupaccess-adminassigned to the identity or governance groupsecurity-auditorassigned to a read-only review group
Avoid
- assigning broad global access directly to many individual users
- using
rootfor routine daily work - mixing all platform and identity responsibilities into one oversized role
Pattern 2: Use Groups For Organization Administration
Inside an organization, group-based assignment is usually better than many direct user grants.
Example shape:
- group
payments-admins - role
organization-admin - domain
org:<payments_org_id>
That means:
- onboarding is done by adding group membership;
- offboarding is done by removing group membership; and
- the assignment model stays stable even as people change.
Pattern 3: Separate Release Authority From Full Administration
Many teams need someone who can review plans, approve, promote, and operate delivery without also managing users, roles, or platform-wide settings.
This is a good fit for either:
- the built-in
release-managerrole if it fits; or - a narrowly tailored custom organization-scoped role.
A release-focused role should usually be able to:
- view apps, jobs, environments, and operations;
- inspect plan and apply history;
- approve and promote where policy allows; and
- avoid broad user, group, or role management powers.
Pattern 4: Developer Access Without Governance Powers
Application teams often need strong visibility but only limited governance authority.
A typical developer-style role might allow:
- reading app and job configuration;
- reading environment state;
- inspecting plans and apply history; and
- possibly running certain low-risk workflows.
It should not usually include:
- role or user management;
- global administration;
- organization-wide access governance.
Pattern 5: Read-Only Viewers
Read-only roles are useful for:
- support teams;
- stakeholders who need visibility;
- security reviewers;
- delivery observers.
A viewer role should generally allow:
- reading resources;
- reading plan, apply, and audit state;
- no approval or mutation powers.
This gives broad visibility without broad operational risk.
Pattern 6: Keep Global And Organization Roles Separate
Do not blur global and organization responsibility unless you truly need to.
A healthy RBAC model usually keeps:
- global roles for installation-wide administration;
- organization roles for tenant-local work.
That means the same person can legitimately hold:
- one global role for platform work; and
- a different organization role for delivery work inside one tenant.
That is cleaner than one oversized mega-role.
Example Assignment Shapes
These examples are conceptual, but they match how Nomatron reasons about subjects, roles, and domains.
Direct user assignment in global scope
subject = user:<user_id>
role = platform-admin
domain = globalGroup assignment in organization scope
subject = group:<group_id>
role = organization-admin
domain = org:<organization_id>Release manager for one organization
subject = group:<release_group_id>
role = release-manager
domain = org:<organization_id>Pattern 7: Prefer Groups Over Many Direct Grants
As a rule:
- use direct user assignments for exceptional cases;
- use groups for normal team access.
Why:
- it reduces repetitive assignment work;
- it makes onboarding and offboarding safer;
- it keeps effective access easier to understand.
If many people need the same role in the same domain, that is almost always a group-shaped problem.
Pattern 8: Use Terraform For Durable RBAC Ownership
When the access model is stable enough to codify, Terraform is usually the best steady-state management surface.
Good Terraform candidates include:
- custom roles;
- groups;
- group membership;
- role assignments;
- service accounts tied to automation.
That gives you:
- reviewable access changes;
- repeatable bootstrap;
- version history for governance.
Example Terraform Role
resource "nomatron_role" "viewer" {
name = "viewer"
description = "Read-only role"
permissions = [
"global.roles.read",
"global.users.read",
]
}Example Terraform Assignment
resource "nomatron_role_assignment" "platform_viewer" {
subject = "group:aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
role = "viewer"
domain = "global"
}Pattern 9: Use The Permission Catalog Before Designing Custom Roles
Before creating a custom role, inspect the permission catalog exposed by the server.
A very useful starting point is:
nomatron permissions listThat keeps role design aligned with the actual permission model instead of guessed permission strings.
Pattern 10: Keep Custom Roles Small And Purposeful
A custom role should exist because it represents a real responsibility boundary.
Good reasons to create one:
- you need a narrower least-privilege release role;
- you need an organization-scoped audit viewer;
- you need to separate approval powers from broader admin powers.
Bad reasons:
- each team wants its own slightly renamed version of the same role;
- the model has drifted into many near-duplicates;
- custom roles are being used to compensate for a messy group structure.
A Strong Starting Model For Many Teams
If you want a practical starting point, this is a solid baseline:
- a very small global platform-admin group;
- a small access-admin group;
- a read-only security-auditor group;
- one organization-admin group per organization;
- one release-manager group per organization where needed;
- one developer group per organization;
- viewer access only where there is a real read-only need.
That is usually enough to support day-to-day operation without turning RBAC into an over-engineered policy maze.