Configuring MongoDB authentication
You can configure the wire listener to use MongoDB authentication.
Procedure
To configure MongoDB
SCRAM-SHA-256 authentication:
Adding MongoDB users
Procedure
To add the initial MongoDB
authorized users:
- Start the wire listener with authentication turned off: Set authentication.enable=false in the wire listener configuration file.
- Add users by running the createUser command through any MongoDB client.
- Turn on authentication: Set authentication.enable=true in the wire listener configuration file.
- Restart the wire listener.