Update Prepping MongoDB for use with Canopy

rainbow napkin 2025-05-21 02:53:36 +00:00
parent 1fd08d27da
commit a2fb3b3256

@ -4,6 +4,7 @@ title: Prepping MongoDB for use with Canopy
## Step-by-step procedure for prepping MongoDB for use with Canopy:
<sup>MongoDB, while gratis and open-source, is not entirely FLOSS. If you're hell bent on using software with a hard FLOSS license, you're probably better off [FerretDB](ferretdb-debian)<sup><br>
@ -14,6 +15,7 @@ title: Prepping MongoDB for use with Canopy
4. Tell apt to update repo's and install mongosh other preq-reqs `sudo apt update && sudo apt install mongodb-org`
### Hardening MongoDB
<sup>This section is incomplete, I'd like to go over this with more security-related documentation for MongoDB. I'm not a professional DBA XP</sup>
1. Start mongod without authentication and drop into a shell `sudo systemctl start mongod & mongosh`
2. Switch over to the admin database `use admin`
3. Create the administrative user:
@ -36,7 +38,6 @@ security:
```
### Setting up the Canopy User/DB
<sup>This section is incomplete, I'd like to go over this with more security-related documentation for MongoDB. I'm not a professional DBA XP</sup>
1. Restart `mongod` with `sudo systemctl restart mongod`
2. Drop back into `mongosh` with authentication `mongosh -u 'admin'`, entering the password on prompt
3. Switch over to the canopy database `use canopy`