Start with the Basics: Set Up the Database
Letâs start from the beginningâyour application has to successfully connect to the database before you can do anything. Letâs make sure you donât fumble the ball even before you cross the line of scrimmage.
Any database that you work with, and it doesnât matter if weâre talking about MySQL, Mongo, Redis, or any other database system, should be configured to use authenticated users. Sometimes people donât bother with user accounts and let everyone (including applications) connect to the database without a password. They typically block outside connections, which is a good thing to do. Unfortunately, itâs not sufficient, even if the database lives on the same machine.
Yes, blocking outside ...
Get Secure Your Node.js Web Application now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.