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)
/
MongoDB Authentication
Updated Nov 24

    MongoDB Authentication

      Security hardening for NMIS and OMK found the following findings

      Single identity

      A single identity (username and password) was used for MongoDB administration and operations for NMIS and all OMK products:

      Username

      Role

      Used by

      Password

      Username

      Role

      Used by

      Password

      opUserRW

      the legacy pre-NMIS 9.7.0 shared identity, root on admin, plus dbOwner per OMK database

      NMIS and every other OMK product on the host

      op42Flow42

      This is no longer secure and the following solution was implemented.

      Separated Identities

      The solution is to implement the following policies:

      • least privilege principle

      • separate identities for each product

      • no shared secrets

       

      From NMIS 9.7.0 and the the following identities are used:

      Username

      Role

      Used by

      Password

      Username

      Role

      Used by

      Password

      nmis9admin

      userAdminAnyDatabase and clusterManager on admin, plus dbAdmin on nmisng. Deliberately not root.

      nothing at runtime; bootstrap and administration only

      generated, stored in the handoff file

      nmis9RW

      readWrite on nmisng only

      the NMIS application at runtime

      generated, stored in conf/Config.nmis

      omkadmin

      userAdminAnyDatabase, plus dbAdmin on each OMK database

      OMK bootstrap and administration only

       

      omkRW

      readWrite on each OMK database

      the OMK applications at runtime

      generated, stored in conf/opCommon.json

      opUserRW

      the pre-NMIS 9.7.0 shared identity, root on admin

      Not created on a fresh install, for an upgrade, left exactly as found; nothing removes it, you have to explicitly remove it.

       

      The legacy OMK account

      The migration performed by the NMIS Installer is additive and nothing removes the old opUserRW shared account; it keeps its published password until someone runs admin/setup_mongodb.pl removelegacyuser=1. The removelegacyuser command declines with a reason until the host is ready to run the command, and the removelegacyuser command is not run automatically by anything.

      The legacy OMK compatibility account

      That account is created only on request, is scoped to the OMK databases, carries a published password and is restricted to local connections.

      The MongoDB credential handoff file

      The credential handoff file is named /usr/local/etc/firstwave/mongodb-admin-password, mode 0600 and root-owned, since that is how an operator with root access recovers administrative access.

        Community Home

        opCommon
        • Downloads
          Downloads
        • Downloads
          Downloads
        • Downloads
          Downloads
        • How-to articles
          How-to articles
        Results will update as you type.
        • Administration
        • Admin Outages API
        • Admin Outages API V3 draft
        • Apache 2.4 on CentOS 6.9
        • Application Support for Dark Mode
        • Automating Admin Tasks Including Node Management
        • Change Management Best Practices
        • Configuration
        • Configuration Options for Server Performance Tuning
        • Configuring Virtual Host SSL or TLS on the Opmantek Virtual Machine
        • Delegated Authentication
        • Deploying Your NMS
        • Enabling DNS Server on Opmantek NMIS8 VM
        • Encryption of Secrets
        • Finding logged entries of processes killed by OOM Killer
        • Find License Information
        • Firstwave API Solutions
        • Firstwave Functional Capabilities - FCAPS
        • Firstwave NMIS8 Virtual Appliance: Release Notes
        • FirstWave Virtual Machine: Installation and Getting Started
        • General Troubleshooting Checklist
        • Getting Started, Configuring the Applications
        • Getting Started, Configuring the Virtual Machine
        • Getting Started with Open-AudIT
        • Getting Started with Opmantek Applications
        • Google Maps API Key
        • High Volume SNMP Trap Processing
        • How to make configuration changes to opCommon.nmis and other files
        • NMIS 2026 Security Release
        • How To Select a Network Monitoring Solution
        • Installing and Refreshing Your License
        • Installing NMIS9 Compatible OMK Applications in a Disconnected (Air-Gapped) Environment
        • Introduction to the Linux Operating System
        • JSON Configuration Files
        • Access Rights in the 2026 OMK Security releases
        • Keeping Track of your Licenses
        • Migrating NMIS and Modules from CentOS 6 to CentOS 7
        • MongoDB Data Migration, Backup and Restore
        • MongoDB Installation
          • Setting Mongod Logrotate
          • MongoDB Authentication
        • Moving to systemd
        • Multiple Open Ports for Opmantek applications
        • NMIS/OMK Timezone Configuration
        • Node Administration with opnode_admin
        • OMK Authentication Methods
        • OMK::Common public methods
        • OMK Common Settings to Consider Changing
        • 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
          Questions
          Calendars

        You‘re viewing this with anonymous access, so some content might be blocked.
        {"serverDuration": 10, "requestCorrelationId": "4fd886b0d4404f388f0c3ed92bb94e61"}