Learn how to dynamically generate Mongo DB Database user credentials.
Open Secret Overview Dashboard
Click on the 'Add Dynamic Secret' button
Select Mongo DB
Provide the inputs for dynamic secret parameters
atlasAdmin
backup
clusterMonitor
dbAdmin
dbAdminAnyDatabase
enableSharding
read
readAnyDatabase
readWrite
readWriteAnyDatabase
<a custom role name>
.{{randomUsername}}
: Random username string{{unixTimestamp}}
: Current Unix timestamp{{identity.name}}
: Name of the identity that is generating the secret{{random N}}
: Random string of N characterstruncate
: Truncates a string to a specified lengthreplace
: Replaces a substring with another valueClick `Submit`
Generate dynamic secrets
Submit
button, a new secret lease will be generated and the credentials from it will be shown to you.