Skip to content

1.42.0 „Dublin“

Choose a tag to compare

@JuBoldt JuBoldt released this 29 Nov 13:45
· 3 commits to main since this release
  • Your own roles. Besides admin, operator and read_only you can make roles from a list of permissions (Settings › Access › Roles): an auditor who only reads the audit trail, someone who prepares rules but may not roll them out, a network team that manages VPN and certificates only. An account has one role; a change to a role applies from the next request. Nobody can hand out a permission they do not hold themselves, built-in roles cannot be changed, and a role that is still in use cannot be deleted. API tokens never do more than their account. SSO groups map to any role through an ordered list (first match wins) instead of three fixed fields. Every endpoint now has a permission in one central table (a request to an endpoint without one is refused, and a test fails the build when a new one has none); the old access rules were replaced by it and a test proves that the three built-in roles and all token scopes decide every endpoint exactly as before. The menu hides pages an account may not look at. Details in the handbook.
  • Change report. Monitoring › Audit › Change report lists every change since a date, one row per operation (who, what, which firewalls, result, comment), filterable by firewall, user and type, with CSV download and a clean print view. Sign-ins and refused attempts are left out (the page says how many); unclear operations stay in; a list cut at 5000 operations says so. Also as GET /api/audit/changes and as the MCP tool change_report. Read only, open to every signed-in role.
  • Keyboard and bulk changes on the rules page. j/k move a cursor through the rules, x selects, / jumps to the search, e edits, c clones, d disables or enables the marked rule as a draft, ? lists the shortcuts. The bulk bar gained Disable, Enable and Clone: each rule goes through the normal single-rule change one after the other (a rule waiting for confirmation is skipped, a failure does not stop the others). All of it changes drafts only; deploying stays the explicit review step. Off while typing or while a dialog is open.
  • Safer bulk deploys: the management check reads the firewall again. The check that guards a real push used a one-minute copy of the firewall that was never discarded after a write, so the second rule of a bulk run was checked against the state before the first one. It now reads the firewall again before every push, and any write to a firewall discards the copy. In the bulk dialog the selected rules are also checked together (GET /api/rules/bulk/management-check), because rules can be harmless alone and block in combination.
  • The management-path check now also covers hierarchy rules, alias deployments, port forwards, 1:1 NAT, removing and deleting rules, and moving rules. Taking a rule off a firewall (Remove from this firewall, or deleting the central rule), moving a rule in the order view and deploying a hierarchy rule are refused when they would block the way OPNexus or a management source reaches the firewall; the dialog names the firewalls and asks once more, and the API takes acknowledge_management_risk. Rollbacks and taking a change back are never checked. Read-only hints: GET /api/rules/{id}/management-check?action=remove|delete, the same for hierarchy rules, and GET /api/rule-order/hosts/{id}/management-check. An alias deployment is checked against every rule on the firewall that names the alias (also through other aliases), managed by OPNexus or not: an alias that drops the address OPNexus uses from a rule that lets it in is refused until acknowledged; content that only the firewall can resolve (URL tables, GeoIP, host names) is a hint, not a stop. Port forwards and 1:1 NAT are checked as well (a destination NAT is applied before the filter rules: a forward or mapping for the firewall's own address takes the management traffic away; the NAT rows OPNsense generates for the LAN web interface and SSH keep that way open). Outbound NAT is not checked (it only changes packets that leave the firewall). VPN follows.
  • Two people editing the same thing: the second save is refused instead of overwriting the first. Already the case for rules, aliases, NAT, VPN and certificates; now also for firewalls (edit dialog), hierarchy groups, maintenance windows, host variables, notification channels and rollout plans. The editor sends the version it was filled from; if someone saved in the meantime, the save is refused with "The entry changed in the meantime. Reload and review the changes again." and what you typed stays on screen. API clients that send no version work as before (expected_version / expected_updated_at are optional).
  • Rule history: the draft against what is deployed, and what happened to the rule. The history dialog of a rule starts with the fields the draft would change on each firewall (or the note that nothing is to roll out) and the last operations on this rule from the audit.
  • Review fixes before release (security). A custom role with users.manage could reset the password or second factor of an administrator (or change or delete the account) and sign in as them; now these four actions need an account whose role holds no more than your own, and nobody changes their own role. Changing the SSO settings (issuer, client, claim) with a stored "group → admin" row needed no more than settings.write; now every role in the group list must be one you could hand out. A role that holds more than you cannot be edited or deleted by you. The route table is now also a hard gate: when the router would serve a request but the table has no row for it, the request is refused instead of let through. Reassert ordering of a hierarchy group is checked against the management path (it moves rules with no way back of its own). VPN checks report "cannot tell" when OPNexus's own address is unknown even with management sources set, and NAT checks when the firewall's NAT list cannot be read.
  • Logs: from a line to the rule. A new Rule column links a log line to the OPNexus rule that wrote it, when the rule id in the line is a rule OPNexus deployed on that firewall (hierarchy rules link to the hierarchy). Other lines show the logged text without a link. GET /api/logs returns rule per line.