OPNexusdocs

Your own roles (1.42)

Settings › Access › Roles lists the three built-in roles and lets you make more. A role is a set of permissions; an account has exactly one role. Typical examples: an auditor who only reads the audit trail and the change report, a drafter who prepares rules but may not roll them out, a network team that manages VPN and certificates but never touches rules.

  • Make one: New role (or Copy as new role from a built-in or another custom role), name it, tick the permissions, save. The permissions are grouped by area and marked look, prepare, roll out or administer; prepare changes only drafts inside OPNexus, roll out puts changes onto firewalls, administer decides who may do what and where OPNexus sends data.
  • A change applies from the next request. Everybody with that role is affected at once, no new sign-in needed. Give an account a custom role under System › Users, or map an SSO group to it.
  • Nobody hands out more than they hold. You can only tick permissions you hold yourself; you cannot give an account a role that holds more than you do. What a role already has stays and can be taken away, but only by someone who holds everything that role holds. The same goes for accounts: whoever may manage users can only reset the password or second factor of, change the role of, or delete an account whose role holds no more than their own (so a "helpdesk" role cannot take over an administrator), and nobody changes their own role. Changing the single sign-on settings counts as handing out every role in the group list, so it needs the same.
  • Built-in roles cannot be changed or deleted (copy one instead). A role in use by an account or an SSO group cannot be deleted; the message says how many.
  • API tokens never do more than their account. A token holds the permissions of its scope (read, deploy, admin) that the account also holds. A role without the roll-out permissions gives tokens without them too, whatever the scope says. Permissions that expose secrets (raw backups, notification settings) are never part of a token below the scope admin, and a few actions (managing tokens, changing your own password, confirming a cleanup) work only in a browser session.
  • Deny by default. A request to an endpoint that has no permission assigned is refused.
  • Audited. Creating, changing and deleting a role is recorded with the permissions before and after.

The permissions and who holds them by default (¹ = the operator holds it only while Operators may roll out changes themselves is on):

PermissionKindWhat it allowsadminoperatorread_only
hosts.readlookSee the firewalls, their status and their data✔✔✔
hosts.prepareprepareEdit host variables and similar drafts✔✔–
hosts.operateroll outOperate firewalls: services, boot environments, interface and DNS/DHCP changes✔✔ ¹–
hosts.manageadministerRegister, edit and remove firewalls✔––
hosts.guiadministerOpen a firewall's web interface through OPNexus✔––
policy.readlookSee rules, aliases, NAT and the rule analysis✔✔✔
policy.writepreparePrepare rules, aliases, NAT and groups (nothing reaches a firewall)✔✔–
policy.deployroll outRoll rules, aliases and NAT out to firewalls, take them back, delete them✔✔ ¹–
policy.cleanupadministerRun and restore a rule cleanup✔––
vpn.readlookSee VPN tunnels and instances✔✔✔
vpn.writepreparePrepare VPN tunnels and instances✔✔–
vpn.deployroll outRoll VPN configuration out to firewalls and remove it✔✔ ¹–
certificates.readlookSee certificates and ACME accounts✔✔✔
certificates.writepreparePrepare certificates and ACME accounts✔✔–
certificates.deployroll outPush certificates to firewalls, sign and renew them✔✔ ¹–
maintenance.readlookSee maintenance windows, rollouts and firmware status✔✔✔
maintenance.planpreparePlan maintenance windows and firmware rollouts✔✔–
maintenance.executeroll outRun updates, reboots, CARP switches and rollouts✔✔ ¹–
logs.readlookRead the firewall logs✔✔✔
logs.settingsadministerChange how logs are collected and kept✔––
audit.readlookRead the audit trail and the change report✔✔✔
audit.exportadministerSet up the audit export to syslog or a webhook✔––
security.readlookSee security findings and compliance✔✔✔
security.checkprepareStart security checks and scans✔✔–
backups.readlookSee the list of configuration backups✔✔✔
backups.runprepareCreate, compare and restore backups✔✔–
backups.settingsadministerChange backup schedule and retention✔––
backups.downloadlookDownload a raw configuration backup (holds password hashes and keys)✔––
config.exportlookExport OPNexus' configuration as code and plan an import✔✔✔
config.applyadministerApply a configuration-as-code import✔––
mcp.uselookUse the MCP interface (read only)✔✔✔
metrics.readlookRead the Prometheus metrics✔✔✔
notifications.readlookSee notification channels and settings (they hold webhook and mail data)✔✔✔
governance.readlookSee the separation-of-duties settings✔✔✔
system_settings.readlookSee OPNexus' system settings✔✔✔
system.readlookSee OPNexus' version and update information✔✔✔
system.statuslookSee OPNexus' internal status✔––
system.updateadministerUpdate OPNexus itself✔––
ha.statuslookSee the OPNexus high-availability status✔––
ha.manageadministerSet up and switch OPNexus high availability✔––
settings.readlookSee OPNexus' own settings✔✔✔
settings.viewlookSee the settings that hold secrets (SSO, e-mail, export targets)✔––
settings.writeadministerChange OPNexus' settings: SSO, notifications, separation of duties, certificates✔––
users.readlookSee the list of accounts✔✔✔
users.manageadministerCreate, change and remove accounts and give them roles✔––
tokens.manageadministerCreate API tokens (everybody manages their own; this one sees all)✔––
roles.manageadministerCreate, change and remove roles✔––