K
K
Kirill Kazakov2018-03-08 12:33:51
PostgreSQL
Kirill Kazakov, 2018-03-08 12:33:51

Is there a scheme for accessing the application (NodeJS) to the database, such that only the application has access?

Actually there is an application on NodeJS, there is PSQL. The customer wants no one except the application to have access to the database.
Actually now access to a DB is simple on Login + Pass .
You can move the application to a separate server and the database to a separate server and allow access to the database server only for the ip of the application server. But authorization will be the same by login, password. And by going to this (NodeJS application server) server, we can also access the database through the console using a login-password.
Whether it is possible to think up more artful authorization?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Shvets, 2018-03-08
@Xuxicheta

https://postgrespro.ru/docs/postgresql/9.6/auth-methods

M
marataziat, 2018-04-05
@marataziat

Yes, iptables will help you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question