Skip to navigation

Authorization

View as MarkdownOpen in Claude

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 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 for authentication prerequisites. With the Helm charts, the Helm authorization settings 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:

[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.

RoleIntended useAdds these scopes
no-accessDeny tenant access unless an explicit mapping grants a role. Per-tenant opt-in; the platform default stays viewer.No scopes
script-uploaderLet automated delivery plan and deploy script bundles.script:read, script:write, script:delete
viewerObserve 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
operatorStart and manage routine workflow activity.workflow:operate, repl:write, tenant:read, featureflag:update, screentest:manage, screentest:ingest
maintainerMaintain scripts and workflow settings.workflow:admin, script:write, script:admin, script:delete, indexer:write, featureflag:admin, signals:write, slurm:rack_admin
adminPerform 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.

AreaScopeMinimum roleAllows
Workflowsworkflow:listViewerList workflows.
Workflowsworkflow:viewViewerView workflow details and status.
Workflowsworkflow:operateOperatorStart workflows and send operational commands, including cancellation.
Workflowsworkflow:adminMaintainerChange workflow administration settings, such as enablement, maintenance pause, and circuit breakers.
Workflowsworkflow:terminateAdminTerminate workflows.
Scriptsscript:readViewer or Script uploaderView scripts and their versions.
Scriptsscript:writeMaintainer or Script uploaderCreate and update scripts.
Scriptsscript:adminMaintainerDelete scripts and manage administrative script settings.
Scriptsscript:deleteMaintainer or Script uploaderRemove scripts through bundle uploads for tenants that set uploads_remove_omitted_scripts.
Indexerindexer:readViewerView indexed data.
Indexerindexer:writeMaintainerChange indexed data.
REPLrepl:readViewerView REPL content.
REPLrepl:writeOperatorRun REPL actions. Only the user who started a session can send code to it, cancel its cells or rename it.
Tenantstenant:readOperatorView tenant information.
Tenantstenant:writeAdminUpdate an existing tenant’s configuration.
Feature flagsfeatureflag:readViewerView feature flags.
Feature flagsfeatureflag:updateOperatorUpdate an existing non-system feature flag.
Feature flagsfeatureflag:adminMaintainerCreate or delete non-system feature flags, and update system flags such as maintenance_mode (also requires featureflag:update).
Signalssignals:readViewerView signals.
Signalssignals:writeMaintainerReset or delete signals.
Slurmslurm:viewViewerView Slurm node information.
Slurmslurm:rack_adminMaintainerUpdate Slurm rack metadata.
MCPmcp:readViewerUse read-only MCP tools.
Nodesnode:viewViewerView node monitoring, history, and insights.
Screen testsscreentest:viewViewerView screen tests, test results, and acceptance and fitness data.
Screen testsscreentest:manageOperatorStart and cancel screen tests, and edit their tags, overrides, notes, and notifications.
Screen testsscreentest:ingestOperatorPost test results, dispatches, fitness policies, and fitness decisions.
Screen testsscreentest:deleteAdminDelete 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:

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:

[[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.