Secure the MongoDB connection - Fluid Topics - 3.9

Install Fluid Topics on Multiple Servers

Operating system
Debian
Category
Technical Notes
Audience
public
Version
3.9

It is possible to authenticate through Scram-Sha-1 method.

It is important to authenticate to MongoDB databases as they contain critical user-related data.

  1. Edit the following file:

    As antidot user

    /usr/local/afs7/Fluid-Topics/conf/-/mongo.conf.json

  2. Add the following lines to the file:

    As antidot user

    {
    "hosts": [
    ...
    ],
    "authentication": {
    "scramSha1": {
    "username": "$USER_NAME",
    "password": "$PASSWORD",
    "database": "$DATABASE"
    }
    }
    }

If $PASSWORD contains special characters, then it must be encoded in accordance with the following nomenclature: https://www.w3schools.com/tags/ref_urlencode.asp

For more information on the Mongo authentication mechanism, consult the official documentation.