klequis / modern-fullstack-mern

0 stars 0 forks source link

Production: MongoDB user creation ip address restrictions #61

Open klequis opened 5 years ago

klequis commented 5 years ago

You can add authenticationRestrictions to a user with db.createUser() such as restricting authentication from a specific ip address.

This should be added for the production users

see: https://docs.mongodb.com/manual/reference/method/db.createUser/index.html#create-user-with-authentication-restrictions