DEV Community

Discussion on: Basics of Multi tenant Node.js and PostgreSQL

Collapse
 
visualcookie profile image
Dean (딘)

Great article. In terms of security, I would not expose the DB credentials of a tenant on the API. At least not unencrypted.

Would like to see, what ideas you got in terms of security. :)

Collapse
 
agusrdz profile image
Agustín Rodríguez

Of course, for security terms another approach it will be implemented like create an APP_ID and APP_SECRET to get an access token or something like that, in the current example credentials are returned to show the result but I think in a real implementation using a token approach it will be enough to handle the database connections under the hood.