Skip to content

Commit

Permalink
✨ Source MongoDB V2: Fix formatting (#31031)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpgrailsdev authored Oct 3, 2023
1 parent 3fab2cf commit 4c251c1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/integrations/sources/mongodb-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ switched to db admin
```shell
admin> db.createUser({user: "READ_ONLY_USER", pwd: "READ_ONLY_PASSWORD", roles: [{role: "read", db: "TARGET_DATABASE"}]})
```
:::note Replace `READ_ONLY_PASSWORD` with a password of your choice and `TARGET_DATABASE` with the name of the database to be replicated. :::

:::note
Replace `READ_ONLY_PASSWORD` with a password of your choice and `TARGET_DATABASE` with the name of the database to be replicated.
:::

4. Next, enable authentication, if not already enabled. Start by editing the `/etc/mongodb.conf` by adding/editing these specific keys:
```yaml
net:
Expand All @@ -84,7 +88,10 @@ net:
security:
authorization: enabled
```
:::note Setting the `bindIp` key to `0.0.0.0` will allow connections to database from any IP address. Setting the `security.authorization` key to `enabled` will enable security and only allow authenticated users to access the database. :::
:::note
Setting the `bindIp` key to `0.0.0.0` will allow connections to database from any IP address. Setting the `security.authorization` key to `enabled` will enable security and only allow authenticated users to access the database.
:::

#### Step 2: Discover the MongoDB cluster connection string

Expand Down

0 comments on commit 4c251c1

Please sign in to comment.