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):
| Permission | Kind | What it allows | admin | operator | read_only |
|---|---|---|---|---|---|
hosts.read | look | See the firewalls, their status and their data | ✔ | ✔ | ✔ |
hosts.prepare | prepare | Edit host variables and similar drafts | ✔ | ✔ | – |
hosts.operate | roll out | Operate firewalls: services, boot environments, interface and DNS/DHCP changes | ✔ | ✔ ¹ | – |
hosts.manage | administer | Register, edit and remove firewalls | ✔ | – | – |
hosts.gui | administer | Open a firewall's web interface through OPNexus | ✔ | – | – |
policy.read | look | See rules, aliases, NAT and the rule analysis | ✔ | ✔ | ✔ |
policy.write | prepare | Prepare rules, aliases, NAT and groups (nothing reaches a firewall) | ✔ | ✔ | – |
policy.deploy | roll out | Roll rules, aliases and NAT out to firewalls, take them back, delete them | ✔ | ✔ ¹ | – |
policy.cleanup | administer | Run and restore a rule cleanup | ✔ | – | – |
vpn.read | look | See VPN tunnels and instances | ✔ | ✔ | ✔ |
vpn.write | prepare | Prepare VPN tunnels and instances | ✔ | ✔ | – |
vpn.deploy | roll out | Roll VPN configuration out to firewalls and remove it | ✔ | ✔ ¹ | – |
certificates.read | look | See certificates and ACME accounts | ✔ | ✔ | ✔ |
certificates.write | prepare | Prepare certificates and ACME accounts | ✔ | ✔ | – |
certificates.deploy | roll out | Push certificates to firewalls, sign and renew them | ✔ | ✔ ¹ | – |
maintenance.read | look | See maintenance windows, rollouts and firmware status | ✔ | ✔ | ✔ |
maintenance.plan | prepare | Plan maintenance windows and firmware rollouts | ✔ | ✔ | – |
maintenance.execute | roll out | Run updates, reboots, CARP switches and rollouts | ✔ | ✔ ¹ | – |
logs.read | look | Read the firewall logs | ✔ | ✔ | ✔ |
logs.settings | administer | Change how logs are collected and kept | ✔ | – | – |
audit.read | look | Read the audit trail and the change report | ✔ | ✔ | ✔ |
audit.export | administer | Set up the audit export to syslog or a webhook | ✔ | – | – |
security.read | look | See security findings and compliance | ✔ | ✔ | ✔ |
security.check | prepare | Start security checks and scans | ✔ | ✔ | – |
backups.read | look | See the list of configuration backups | ✔ | ✔ | ✔ |
backups.run | prepare | Create, compare and restore backups | ✔ | ✔ | – |
backups.settings | administer | Change backup schedule and retention | ✔ | – | – |
backups.download | look | Download a raw configuration backup (holds password hashes and keys) | ✔ | – | – |
config.export | look | Export OPNexus' configuration as code and plan an import | ✔ | ✔ | ✔ |
config.apply | administer | Apply a configuration-as-code import | ✔ | – | – |
mcp.use | look | Use the MCP interface (read only) | ✔ | ✔ | ✔ |
metrics.read | look | Read the Prometheus metrics | ✔ | ✔ | ✔ |
notifications.read | look | See notification channels and settings (they hold webhook and mail data) | ✔ | ✔ | ✔ |
governance.read | look | See the separation-of-duties settings | ✔ | ✔ | ✔ |
system_settings.read | look | See OPNexus' system settings | ✔ | ✔ | ✔ |
system.read | look | See OPNexus' version and update information | ✔ | ✔ | ✔ |
system.status | look | See OPNexus' internal status | ✔ | – | – |
system.update | administer | Update OPNexus itself | ✔ | – | – |
ha.status | look | See the OPNexus high-availability status | ✔ | – | – |
ha.manage | administer | Set up and switch OPNexus high availability | ✔ | – | – |
settings.read | look | See OPNexus' own settings | ✔ | ✔ | ✔ |
settings.view | look | See the settings that hold secrets (SSO, e-mail, export targets) | ✔ | – | – |
settings.write | administer | Change OPNexus' settings: SSO, notifications, separation of duties, certificates | ✔ | – | – |
users.read | look | See the list of accounts | ✔ | ✔ | ✔ |
users.manage | administer | Create, change and remove accounts and give them roles | ✔ | – | – |
tokens.manage | administer | Create API tokens (everybody manages their own; this one sees all) | ✔ | – | – |
roles.manage | administer | Create, change and remove roles | ✔ | – | – |