MySQL username and password protection


I want to put MySQL login credentials in config.production.json file. Username and password are stored in plain text though.

How to protect it?

Can I fetch data from docker secrets to the json file, maybe?

You can pass config in with env variables if you don’t want to store credentials in files