Authentication And Evaluation

Nomatron is in early access. Some advanced workflows may not be covered in the public docs.

RBAC starts only after Nomatron knows who the caller is.

That means every authorization decision has two parts:

  1. authentication
  2. authorization

Authentication First

Authentication, or authN, is how Nomatron establishes identity.

Depending on the surface and deployment, that identity may come from:

  • a built-in local user;
  • an OIDC identity provider (SSO login via the UI or nomatron login --oidc);
  • a service account; or
  • another token-backed system identity.

OIDC group mappings can assign roles during login when the provider emits group claims; those OIDC-sourced assignments refresh on each login. See OIDC .

The important point is that RBAC does not invent identity on its own. It evaluates permissions after the caller has already been authenticated.

From Identity To Subject

Once Nomatron knows the caller identity, RBAC evaluates permissions against a subject.

In Nomatron, subjects typically look like:

text
user:<id>
group:<id>

That subject is what roles are assigned to.

So the practical flow is:

  1. authenticate the caller
  2. derive the RBAC subject
  3. gather effective assignments
  4. evaluate whether any assignment allows the requested action

What Gets Evaluated

The RBAC engine evaluates a request using four values:

  • subject
  • domain
  • object
  • action

You can think of that as:

text
who is asking?
where are they asking?
what are they asking to act on?
what are they trying to do?

This is why a user can be validly authenticated but still denied access. Authentication proves identity. RBAC still has to prove authorization.

Effective Access

Access is not determined by only one role assignment.

Effective access may come from:

  • a direct user assignment;
  • one or more group assignments; and
  • built-in roles or system-managed assignments.

That means the operator question is usually not:

Does this user have role X?

It is more often:

What effective roles and permissions does this user have in this domain?

Built-In And System-Managed Access

Some access is deliberately built in or managed by the system.

For example:

  • the root role is the break-glass global superuser model;
  • organization ownership flows can drive system-managed assignments; and
  • some assignments are marked as system-managed rather than normal manual grants.

That distinction matters because not every effective assignment should be treated as a hand-managed access rule that can be edited casually.

Why A Caller Can Still Be Denied

A request may still be denied even when the caller is authenticated successfully if:

  • no matching role assignment exists;
  • the role exists but only in a different domain;
  • the role scope does not match the target operation;
  • the permission catalog does not include the requested action for that role; or
  • the caller expected group-derived access that is not actually present.

This is the normal difference between:

  • I am logged in
  • I am allowed to do this here

A Useful Debugging Habit

When debugging RBAC, work through the chain in this order:

  1. confirm the caller identity;
  2. confirm the subject form;
  3. confirm the target domain;
  4. confirm the assigned role or roles;
  5. confirm the role’s permission set; and
  6. confirm the permission actually matches the requested object and action.

That sequence is usually much more effective than starting from a generic “permission denied” error alone.