Within the database access file, a secret is hardcoded.
This allows the entire internet to access and modify the database.
|
'mongodb+srv://HYF-FP-G1:K9i8lCCRD1LqYY2u@hfycluster.n96tz.mongodb.net/myFirstDatabase?retryWrites=true&w=majority'; |
Acceptance criteria:
- Remove secret
- Add support for loading in the secret through an environmental file