Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
Security changes in the 2026 OMK Security releases
Published Nov 08

    Security 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. Each 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 conf/opCommon.json

      Before

      After

      Key in conf/opCommon.json

      Before

      After

      db_username

      the shared account

      omkRW

      db_password

      a published default

      a placeholder, replaced by a generated 64-character password when setup runs

      db_auth_source

      did not exist

      admin, which is also the default when unset

      Roles at runtime

      superuser

      readWrite on each configured OMK database

      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.js and drop_eventqueue.js. Pass the credential from conf/opCommon.json to mongosh. drop_eventqueue.sh now prompts for the password, prefers mongosh, and targets the opevents database unless you set DB_NAME.

      • A per-application <app>_db_username override 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 resetadminpw command in OMK. On a host that also runs NMIS, use admin/setup_mongodb.pl resetadminpw=1 from 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 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, and patch_access.pl adds 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_rw rather 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 is what allows these applications to read secrets NMIS has encrypted. It is covered in: Common changes in the 2026 OMK releases because its main effect is interoperability.

      • MongoDB Authentication describes the account model in full.

      • Encryption of Secrets describes the shared master key and which products can read it.

      • NMIS 9.7.0 carries the matching security changes on its side. See NMIS 2026 Security Release.

        Community Home

        opCommon
        • Downloads
          Downloads
        • Downloads
          Downloads
        • Downloads
          Downloads
        • How-to articles
          How-to articles
        Results will update as you type.
        • OpenAudIT-NMIS Integration
        • opIntegration Home
        • Opmantek Products and Apache Log4J Vulnerability - Log4Shell CVE-2021-44228
        • Opmantek Products and Apache Log4J Vulnerability - Log4Shell CVE-2021-45105
        • Opmantek Support Case Opening Checklist
        • Opmantek System Configuration
        • Firstwave VM Installation and Getting Started
        • Packages and Modules Summary
        • FirstWave VM Release Notes
        • Parallel opReports Solution: New platform opReports 3.4.1 running in parallel with old platform OMK Apps including opReports 3.2.0
        • Parallel opReports Solution: New platform opReports 3.5.2 running in parallel with old platform OMK Apps including opReports 3.2.0
        • Product Compatibility
        • Product Compatibility NMIS 8
        • Redis and Opmantek Applications
        • Reducing a Server's Memory Footprint when OMK applications are installed
        • Relocating NMIS9 and OMK logs
        • Required packages for installing our products
        • Restore Backup after Install
        • Securing Opmantek Applications
        • Security Configurations
        • Smarter non-interactive installation with Preseeding
        • SSO for Firstwave Applications
        • Supported Time Formats
        • The FirstWave Installer
        • The Opmantek Installer
        • The Opmantek Support Tool
        • Training
        • Trialing Opmantek's Products
        • Upgrading FirstWave Applications
        • Upgrading From MongoDB 3.0 to MongoDB 3.2
        • Upgrading to MongoDB 3.2 Using Wired Tiger
        • Upgrading to MongoDB 4.2
        • Upgrading to MongoDB 6.0
        • Upgrading to MongoDB 7.0
        • VirtualBox Installation Guide Screenshots (Windows / Linux)
        • Virtual Machine Maintenance: Updating Software
        • How-to articles
        • How to create a custom field in Open-AudIT and integrate that into NMIS/OMK
        • Node Audit API
        • NMIS Suite for Docker
        • Security changes in the 2026 OMK Security releases
        • Common changes in the 2026 OMK Security releases
          Questions
          Calendars

        You‘re viewing this with anonymous access, so some content might be blocked.
        {"serverDuration": 14, "requestCorrelationId": "05b1641ce6804b419370480518c07517"}