R
R
Rag'n' Code Man2021-03-15 22:02:24
Node.js
Rag'n' Code Man, 2021-03-15 22:02:24

How to store the database password?

Good afternoon.

In some article on Habré about NodeJS, I saw that you should not store data for connecting to the database in configs and somewhere else.

How then to do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2021-03-15
@iDmitriyWinX

worth it or not depends primarily on the requirements for safety and the criticality of the loss.
do not want / can store in the config? no question:
there are environment variables;
there is a system storage of passwords in almost any system;
there are specialized vault storages;

D
Dr. Bacon, 2021-03-15
@bacon

ok Google, "node js store database password", well, or credentials, otherwise it gets there and how to store passwords in the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question