Standard practice is to ensure that the database server is not open to the Internet as a whole. In the ideal case, the database should only allow connections from the application server — a connection on the local network blocked by a specific port and IP address. In this case, you do not need SSL because the environment is trusted.
Regardless of your structure or language, there is no real way to protect the database configuration on the application server outside of normal access policies. Lock the server, lock the database permissions for as long as you can (restrict SELECT UPDATE DELETE, etc. On certain tables, as your use-cases allow.
source
share