Common changes in the 2026 OMK Security releases
These changes live in the code every OMK application is built from, so they apply to all of them at once. Your product's release note lists what is specific to it and links here for the rest.
Read the first two sections before you upgrade. They change who can do what, and they change how the applications reach their database.
1. Each product now uses its own scoped database account
Until now every OMK product and NMIS authenticated to MongoDB as one identity, opUserRW,
which held the database superuser role and shipped with a password published in our
documentation. One credential, known in advance, reached every product's data on the machine.
The OMK applications now use an account scoped to their own databases.
Key in | Before | After |
|---|---|---|
| the shared account |
|
| a published default | a placeholder, replaced by a generated 64-character password when setup runs |
| did not exist |
|
Roles at runtime | superuser |
|
The old shared account | recreated and re-granted superuser on every install | left exactly as found |
What happens when you upgrade. The installer runs setup_mongodb.pl, which maps the old
account to omkRW, creates it with readWrite on each configured database, generates a
password only if the current one is still a shipped default, and writes the three keys to
conf/opCommon.json in a single write. The old account is not touched, so the migration adds
rather than replaces and the previous release keeps working against the same server.
Provisioning needs an administrative MongoDB credential. It is looked for in this order: the
OMK_DB_ADMIN_USERNAME and OMK_DB_ADMIN_PASSWORD pair, then the NMIS_DB_ADMIN_USERNAME
and NMIS_DB_ADMIN_PASSWORD pair, then the root-only handoff file shared with NMIS at
/usr/local/etc/firstwave/mongodb-admin-password, then an interactive prompt, and finally the
installation's existing credential, which is used only while it has not yet migrated. That last
source is what lets an unattended upgrade complete with no operator input.
A later run on an already migrated host with no administrative credential available is not an error, as long as the scoped credential still works. It warns and continues.
A fresh host with MongoDB authentication switched off also gets a separate omkadmin account
and the handoff file, for products installed later to use.
What you will notice.
The installer now stops if database setup fails. It used to report success regardless.
The Database Info page in opAdmin shows less. Server status, disk usage and the whole-server database list are gone, because the scoped account has no role that can read them. Reachability and per-database statistics remain.
Four maintenance scripts no longer authenticate themselves:
opevents_purge_actionqueue.js,adjustcredset.js,optrend_purge.jsanddrop_eventqueue.js. Pass the credential fromconf/opCommon.jsontomongosh.drop_eventqueue.shnow prompts for the password, prefersmongosh, and targets theopeventsdatabase unless you setDB_NAME.A per-application
<app>_db_usernameoverride is left alone. Setup warns about it and neither creates nor rotates it.The MongoDB Perl driver must be version 2. A version 1 driver now fails at load with a clear message rather than failing authentication later. Version 2 has been required in practice for about two years.
There is no
resetadminpwcommand in OMK. On a host that also runs NMIS, useadmin/setup_mongodb.pl resetadminpw=1from the NMIS side.
The old shared account remains on the server until somebody removes it. On a host that also
runs NMIS, admin/setup_mongodb.pl removelegacyuser=1 does that once every product has
migrated. See MongoDB Authentication.
Worth knowing. This change was in the source from an earlier pull request but was inert in every packaged build until now: a guard meant for tests returned early when the code ran from a packaged application, so no earlier package ever provisioned the scoped account. These releases are the first where it runs.
2. Some rights are now administrator-only
A set of rights is now honoured only for users at privilege level 0, the administrator level, whatever your Access table grants at other levels. The list matches NMIS 9.7.0.
It covers every module_*_admin right, across opCore, opAdmin, opEvents, opConfig, opCharts,
opFlow, opFlowSP, opAddress, opExport, opHA, opMaps, opReports, opTrend and opEvents SD, and
these table rights:
table_users_rw, table_access_rw, table_config_rw, table_authldapprivs_rw,
table_privmap_rw, table_tables_rw, table_services_rw, table_logs_rw,
table_models_rw, table_users_view, table_access_view, table_authldapprivs_view,
table_config_view.
This will affect you. The shipped Access table grants the module_*_admin rights at levels
0, 1 and 2, so a manager or engineer who could administer an application in the previous
release cannot in this one. If you delegate administration to anyone below administrator, sort
their role out before you upgrade.
Two rights are deliberately excluded so that node editing and licence entry stay delegable:
module_opcore_node_admin and module_oplicense_admin.
The opt-out is auth_lock_sensitive_tables in the NMIS Config.nmis, shared with NMIS. Only
an exact false, no or 0 disables the lock, and it disables it for every right on the list
at once. See Access Rights in the 2026 OMK Security releases.
3. Node and outage management need explicit rights
A new right,
module_opcore_node_admin, "Node Create/Edit/Delete Access to opCore", gates every node create, edit, delete and bulk import route in opAdmin. It is granted at levels 0 to 2 in the shipped Access table, andpatch_access.pladds it to an existing Access table during installation. Previously, creating a node needed only view access, and bulk import checked nothing beyond being logged in.This right is deliberately left out of the administrator-only list in section 2, so node administration stays delegable to managers and engineers after you upgrade.
The Edit Nodes menu entry in opCharts, opConfig and opEvents points at opAdmin's node editor and appears for anyone holding that right, so the menu and its destination agree. opConfig's own node edit routes use the same right. Operators remain refused.
Creating, updating and deleting outages requires
module_opcore_rwrather than view access.
4. Node tools no longer run through a shell
The node tools runner in opAdmin built its command as a string from a node's host and name. Commands are now run as an argument list with no shell involved. Output is unchanged.
5. Output escaping across the interface
The legacy Backbone interface escapes output by default across all applications, 108 template files. Regression tests run for opCharts, opConfig and opEvents.
URLs are checked against an allowlist of schemes before being written into a link. Values placed into page scripts are escaped, and opConfig command output is escaped before display.
The same allowlist now applies on the server side, to node remote-connection URLs. This covers the node status panel, the node summary table and the event rows opEvents builds from them, which previously escaped the attribute but applied no scheme check.
The permitted schemes are http, https, mailto, and the remote-access handoff schemes
ssh, sftp, telnet, rdp, vnc, ftp and ftps, plus relative, root-relative,
protocol-relative and fragment references. Anything else becomes a dead link.
Check your ssh_url if you have customised it. A site-specific remote-access URL using a
scheme outside that list now renders as a dead link rather than a working button. A handoff URL
with no host, or whose host begins with a hyphen, is also rejected, because on some platforms
the host reaches a command line.
If a page that used to render data as formatting now shows the markup as text, that is a regression and worth reporting.
6. Session cookie flags agree with NMIS
OMK and NMIS both write the shared omk cookie, and whichever writes last wins. OMK now reads
SameSite and Secure from the NMIS Config.nmis, using auth_cookie_samesite, which accepts
Strict or Lax, and auth_cookie_secure, so the two products always agree.
The OMK setting auth_samesite_cookie is ignored when NMIS is integrated, and the opAdmin
control now says so. An installation without NMIS still uses it, may set None, and gets
Secure forced on in that case, because browsers discard a None cookie without it.
auth_secure_cookie in opCommon.json is still honoured, and the shipped default no longer
sets it to false.
7. Cookie-signing keys stay in sync on upgrade
When OMK and NMIS share a host they must sign the shared cookie with the same key.
opcommon-cli.pl act=sync_secrets used to mint a new key whenever the two differed, which
logged you out of one product when you signed into the other after an upgrade. It now adopts
the existing OMK key into the NMIS side.
Keys are written by adding before removing, so the list is never empty, and the NMIS write is skipped if the OMK write fails. Placeholder and historic default keys are now recognised as insecure.
8. Related
The bundled Perl now carries Crypt::CBC 3.07, which fixes CVE-2025-2814 and is what allows these applications to read secrets NMIS has encrypted. It is covered in Common changes in the 2026 OMK Security releases because its main effect is interoperability.
MongoDB Authentication describes the account model in full.
describes the shared master key and which products can read it.
NMIS 9.7.0 carries the matching changes on its side. See NMIS 2026 Security Release.