[MXS-4242] At startup nosqlprotcol should optionally create a default NoSQL user. Created: 2022-08-11  Updated: 2022-09-06  Resolved: 2022-09-02

Status: Closed
Project: MariaDB MaxScale
Component/s: nosqlprotocol
Affects Version/s: None
Fix Version/s: 22.08.1

Type: New Feature Priority: Major
Reporter: Johan Wikman Assignee: Johan Wikman
Resolution: Fixed Votes: 0
Labels: None

Epic Link: MongoDB Protocol Support
Sprint: MXS-SPRINT-164, MXS-SPRINT-165

 Description   

When nosqlprotocol is started with the following configuration

...
nosqlprotocol.user=the_user
nosqlprotocol.password=the_password
nosqlprotocol.authentication_required=true
nosqlprotocol.authorization_enabled=true

it should check whether the NoSQL account database is empty and if it is, it should create a a NoSQL user the_user with the password the_password, and give it the NoSQL capabilities corresponding to what SHOW GRANTS reports for the user.

With this functionality, the bootstrapping of a secure nosqlprotocol installation is significantly simplified. All that needs to be done is:

  • Create the user in MariaDB.
  • Configure nosqlprotocol in the MaxScale configuration file as above.
  • Start MaxScale.

Without this functionality, the creation of a secure nosqlprotocol installation requires MaxScale needs to be started multiple times, with the MaxScale configuration file edited in between.


Generated at Thu Feb 08 04:27:13 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.