Managing RBAC

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

Nomatron RBAC can be managed through several different surfaces.

The best one depends on whether you are exploring, operating interactively, automating changes, or codifying access declaratively.

In The UI

The UI is usually the best place to:

  • inspect built-in roles;
  • review custom role definitions;
  • check current assignments;
  • understand access in context; and
  • make targeted changes interactively.

This is especially useful when you are:

  • designing the initial model;
  • debugging a real access issue; or
  • reviewing assignments with stakeholders who are not working from code.

With Terraform

Terraform is the best fit when you want RBAC to be declarative and reviewable.

That is usually the right choice for:

  • production-grade role definitions;
  • repeatable organization bootstrap;
  • consistent role assignment across environments; and
  • change control through pull requests and plan/apply workflows.

Use the Nomatron provider when you want RBAC to be part of your normal infrastructure-as-code operating model.

Start with:

With The CLI

The CLI is a strong fit for operators who want a scriptable but human-friendly interface.

It is especially useful for:

  • quick role inspection;
  • one-off operational changes;
  • listing the permission catalog; and
  • targeted assignment changes.

The main CLI pages are:

One especially useful command when designing custom roles is:

bash
nomatron permissions list

That gives you the permission catalog exposed by the server, which is the safest starting point for custom role design.

With The API

The API is the best fit for:

  • external automation;
  • custom internal tooling;
  • lifecycle workflows that need RBAC provisioning as part of a broader platform process; and
  • environments where you want full programmatic control.

The RBAC API surface includes endpoints for:

  • listing permissions;
  • listing roles;
  • creating custom roles; and
  • assigning or removing roles.

Start with:

Which Surface To Prefer

A practical rule of thumb is:

  • use the UI for exploration and debugging;
  • use Terraform for steady-state declarative management;
  • use the CLI for targeted operator workflows and scripting; and
  • use the API when you are building a deeper automation or platform integration.

These are complementary, not competing, surfaces.

For most teams, the healthiest long-term model is:

  1. inspect and design RBAC with the UI and permission catalog;
  2. settle on a small stable set of built-in and custom roles;
  3. manage enduring roles and assignments with Terraform;
  4. use groups instead of large numbers of user-specific grants; and
  5. reserve direct CLI or API mutation for targeted operational work or controlled automation.

That keeps RBAC understandable, reviewable, and less likely to drift over time.