0

We have a MariaBD version using MaxScale to use the NoSQL version using MongoDB driver.

However, the connection is made without authentication and so it is possible to create new databases and collections within MaxScale.

How to enable authentication for connection using nosql protocol.

Thank you very much for everyone's attention.

type=listener
service=Read-Write-Service
protocol=nosqlprotocol
nosqlprotocol.user=maxscale
nosqlprotocol.password=password
port=17017
marcelo.delta
  • 2,730
  • 5
  • 36
  • 71

2 Answers2

1

You can require authentication of clients by adding nosqlprotocol.authentication_required=true in the listener configuration.

markusjm
  • 2,358
  • 1
  • 11
  • 23
0

There is a section Bootstrapping the Authentication/Authorization at https://mariadb.com/kb/en/mariadb-maxscale-6-nosql-protocol-module/#authentication that explains how to take authentication into use.

Johan
  • 1
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – lemon May 23 '22 at 11:16