'connection': {
'host': 'localhost',
'port': '3306',
'user': 'root',
'password': 'admin',
'database': 'test'
}
Developing a node.js environment web app.
I am using mysql in conjunction with it, but how should I handle the above connection information?
Is there any security problem if I just manage it under the name config.js, etc. in the web directory?
Please answer the above issues and methods!!!
Have a nice weekend!
node.js security hacking
If you are exposed to a single source, such as development equipment, servers, and source storage, information that can access the DB will be exposed immediately.
Rather than simply saving passwords to a file, we recommend storing them in system variables on the server and reading them.
This prevents exposure to sources.
© 2024 OneMinuteCode. All rights reserved.