> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# Authorization

> Configure Remediation Orchestrator's built-in role-based access control and understand its roles and scopes.

Remediation Orchestrator's built-in role-based access control (RBAC) maps OIDC groups, role claims, and authenticated client IDs to a role for each tenant. Mappings come from each tenant's configuration and, optionally, a [site-wide RBAC file](#site-wide-role-mappings) shared by all tenants. A role grants a set of scopes, which control the UI actions and API endpoints an identity can use.

Enable built-in RBAC by setting `MAESTRO_AUTHORIZATION_PROVIDER=rbac`. When authorization is disabled, Remediation Orchestrator does not enforce role or scope checks. See the [deployment checklist](/remediation-orchestrator/guides/deployment-checklist#appendix-b-authentication-and-authorization) for authentication prerequisites. With the Helm charts, the [Helm authorization settings](/remediation-orchestrator/deployment/helm/reference/application-chart#authorization) set the provider and site administrator groups; this page owns the role and scope semantics.

## How role mapping works

Configure a tenant's role mapping in its TOML configuration:

```toml
[rbac]
default_role = "viewer"

[[rbac.group_mappings]]
group = "operations-team"
role = "operator"

[[rbac.group_mappings]]
group = "workflow-maintainers"
role = "maintainer"

[[rbac.role_mappings]]
claim_role = "teleport-script-uploader"
role = "script-uploader"

[[rbac.client_mappings]]
client_id = "script-manager-client-id"
role = "script-uploader"
```

`group` and `claim_role` must exactly match values in the authenticated token. `client_id` must exactly match the calling application's authenticated client ID (`azp` in an Entra v2 token or `appid` in a v1 token). Remediation Orchestrator checks group mappings first, then role mappings, then client mappings. Within each list, the first match wins. If nothing matches, the orchestrator assigns `default_role`; set it to `no-access` to require an explicit mapping for access. Access is granted only where a tenant grants it, so if `default_role` is absent, or set to an unrecognized role, the identity receives `no-access`. Open tenants are configured with `default_role = "viewer"` rather than relying on an omitted value.

Use the least-privileged role that supports the identity's work. The human roles are hierarchical: each role includes all scopes from the roles above it in the following table. `script-uploader` is separate from that hierarchy.

| Role | Intended use | Adds these scopes |
| --- | --- | --- |
| `no-access` | Deny tenant access unless an explicit mapping grants a role. Per-tenant opt-in; the platform default stays `viewer`. | No scopes |
| `script-uploader` | Let automated delivery plan and deploy script bundles. | `script:read`, `script:write`, `script:delete` |
| `viewer` | Observe workflow, node, and configuration state. | `slurm:view`, `workflow:list`, `workflow:view`, `script:read`, `indexer:read`, `repl:read`, `featureflag:read`, `signals:read`, `mcp:read`, `node:view`, `screentest:view` |
| `operator` | Start and manage routine workflow activity. | `workflow:operate`, `repl:write`, `tenant:read`, `featureflag:update`, `screentest:manage`, `screentest:ingest` |
| `maintainer` | Maintain scripts and workflow settings. | `workflow:admin`, `script:write`, `script:admin`, `script:delete`, `indexer:write`, `featureflag:admin`, `signals:write`, `slurm:rack_admin` |
| `admin` | Perform tenant-level configuration changes and terminate workflows. | `workflow:terminate`, `tenant:write`, `screentest:delete` |

For example, a `maintainer` has every `viewer` and `operator` scope in addition to the scopes listed for `maintainer`.

A role name Remediation Orchestrator does not recognize is reported rather than guessed. The entry is rejected when the config is saved, and a config already in the store is listed on that tenant's detail page. A mapping naming an unknown role still matches its members but grants them nothing, rather than dropping the entry and sending them to the default. Otherwise a typo in a mapping written to hold a group back would hand them the tenant default instead. A `default_role` that was written and does not resolve falls to `no-access`, because a misspelling of `viewer` and a misspelling of `no-access` look the same and only one of those guesses is safe. Leaving `default_role` unset grants nothing either, since access is granted only where a tenant grants it; open tenants set `default_role = "viewer"` explicitly. Role names match exactly, so `Viewer` is not `viewer` and does not resolve; the error lists the names that are accepted.

`no-access` applies to machine identities the same way it applies to people: a service account whose group, role claim, or client ID is mapped only in the tenants it serves has no access to any other tenant that sets `default_role = "no-access"`. Note that `none` is not a role name. This product already uses that word for the opposite meaning, since `MAESTRO_AUTHORIZATION_PROVIDER = none` turns authorization off entirely.

## Scope reference

Scopes identify the permission required by an action. The following table lists the built-in scopes and the least-privileged built-in role that receives each one.

| Area | Scope | Minimum role | Allows |
| --- | --- | --- | --- |
| Workflows | `workflow:list` | Viewer | List workflows. |
| Workflows | `workflow:view` | Viewer | View workflow details and status. |
| Workflows | `workflow:operate` | Operator | Start workflows and send operational commands, including cancellation. |
| Workflows | `workflow:admin` | Maintainer | Change workflow administration settings, such as enablement, maintenance pause, and circuit breakers. |
| Workflows | `workflow:terminate` | Admin | Terminate workflows. |
| Scripts | `script:read` | Viewer or Script uploader | View scripts and their versions. |
| Scripts | `script:write` | Maintainer or Script uploader | Create and update scripts. |
| Scripts | `script:admin` | Maintainer | Delete scripts and manage administrative script settings. |
| Scripts | `script:delete` | Maintainer or Script uploader | Remove scripts through bundle uploads for tenants that set `uploads_remove_omitted_scripts`. |
| Indexer | `indexer:read` | Viewer | View indexed data. |
| Indexer | `indexer:write` | Maintainer | Change indexed data. |
| REPL | `repl:read` | Viewer | View REPL content. |
| REPL | `repl:write` | Operator | Run REPL actions. Only the user who started a session can send code to it, cancel its cells or rename it. |
| Tenants | `tenant:read` | Operator | View tenant information. |
| Tenants | `tenant:write` | Admin | Update an existing tenant's configuration. |
| Feature flags | `featureflag:read` | Viewer | View feature flags. |
| Feature flags | `featureflag:update` | Operator | Update an existing non-system feature flag. |
| Feature flags | `featureflag:admin` | Maintainer | Create or delete non-system feature flags, and update system flags such as `maintenance_mode` (also requires `featureflag:update`). |
| Signals | `signals:read` | Viewer | View signals. |
| Signals | `signals:write` | Maintainer | Reset or delete signals. |
| Slurm | `slurm:view` | Viewer | View Slurm node information. |
| Slurm | `slurm:rack_admin` | Maintainer | Update Slurm rack metadata. |
| MCP | `mcp:read` | Viewer | Use read-only MCP tools. |
| Nodes | `node:view` | Viewer | View node monitoring, history, and insights. |
| Screen tests | `screentest:view` | Viewer | View screen tests, test results, and acceptance and fitness data. |
| Screen tests | `screentest:manage` | Operator | Start and cancel screen tests, and edit their tags, overrides, notes, and notifications. |
| Screen tests | `screentest:ingest` | Operator | Post test results, dispatches, fitness policies, and fitness decisions. |
| Screen tests | `screentest:delete` | Admin | Delete a kept test result record. |

## Site Admin

Site Admin is a deployment-wide privilege, not a role that can be assigned in a tenant's `[rbac]` mapping. It is intended for operators who administer tenants across the Remediation Orchestrator deployment.

Configure the OIDC groups that receive this privilege with `MAESTRO_SITE_ADMIN_GROUPS`, as a comma-separated list. For example:

```sh
MAESTRO_SITE_ADMIN_GROUPS=maestro-site-admins,platform-operators
```

When RBAC is enabled, members of a configured Site Admin group receive the `site:admin` scope and are authorized for all scopes. This includes creating, deleting, and deactivating tenants. Do not add ordinary tenant administrators to a Site Admin group.

If `MAESTRO_SITE_ADMIN_GROUPS` is empty, no user receives `site:admin`. When authorization is disabled, this setting has no effect because Remediation Orchestrator allows all requests.

## Site-wide role mappings

A site-wide RBAC file grants roles in every tenant without repeating the same mapping in each tenant's configuration. Use it for identities that need the same role everywhere, such as a platform operations group or a reporting client.

Set `MAESTRO_SITE_CONFIG_FILE` (or the `--site-config` flag) to the path of a deployment-managed TOML file. In a container, use an absolute path to the mounted file. The file is read only when `MAESTRO_AUTHORIZATION_PROVIDER=rbac`, and only at startup, so restart Remediation Orchestrator after changing it.

The file supports the same mapping types as tenant RBAC:

```toml
[[rbac.group_mappings]]
group = "platform-operators"
role = "operator"

[[rbac.role_mappings]]
claim_role = "workflow-maintainer"
role = "maintainer"

[[rbac.client_mappings]]
client_id = "reporting-client"
role = "viewer"
```

Remediation Orchestrator resolves a role for each tenant in this order:

1. Site Admin membership grants every scope.
2. The tenant's own group, role, and client mappings. Any tenant match wins over every site mapping.
3. The site file's group mappings, then role mappings, then client mappings. The first match within each type wins.
4. The tenant's `default_role`, or `no-access` when it is absent.

An explicit `no-access` mapping counts as a match and stops resolution at its level. A tenant can therefore deny an identity that the site file grants, but a site `no-access` mapping cannot override a tenant grant.

The site file cannot set `default_role` or Site Admin membership; defaults stay tenant-owned and Site Admin stays in `MAESTRO_SITE_ADMIN_GROUPS`. Remediation Orchestrator refuses to start if the file is missing or contains unknown fields, unknown roles, empty mapping keys, or a key repeated within one mapping type. Values match authenticated claims exactly, as they do in tenant mappings.

## Verify access

After changing group membership, tenant RBAC configuration, or the site-wide RBAC file, sign in as a representative user and confirm that the UI exposes only the expected actions. A missing action or an HTTP `403 Forbidden` response means the role does not have the required scope. Review group-claim values and the mapping order before granting a broader role.