Dynamically create and manage MongoDB users with scoped roles.
Key | Description |
---|---|
user | The generated MongoDB username |
password | The generated MongoDB password |
Key | Default | Description |
---|---|---|
database.adminDB | "admin" | Name of the MongoDB administrative database used to authenticate. |
database.host | Required | Hostname or IP of the MongoDB instance. |
database.port | 27017 | Port used to connect to the MongoDB instance. |
auth.scram.username | Optional | Username used for SCRAM authentication. |
auth.scram.secretRef.usernameSecretRef | Optional | Secret reference for the SCRAM username. |
auth.scram.secretRef.passwordSecretRef | Required | Secret reference for the SCRAM password. |
user.name | Optional | Desired username for the MongoDB user. If not specified, one is generated. |
user.roles | Required | List of roles to assign to the user. Each role must include a name and db . |
userAdmin
or userAdminAnyDatabase
role in the admin database.
user.name
is provided, a username is automatically generated and will follow ESO’s default randomization strategy.