3
gvnix
6y

What's the best way to set username password for DB?

I currently set them as system env variables and then have placeholers in the properties files. This helps in avoiding a bad commit to GitHub.

Comments
  • 1
    I add them to a config file, of course both are encrypted, the decryption key is hard coded though I know that means nothing if someone got hold of the dll and de-compiled it, but I hope no one does hack into my server
  • 0
    easy. Dont use dbs
  • 1
    I always use .env files.
  • 0
    @teequila What do you use for user data storage then?
  • 0
    Have a config file like .env.dist and have people rename it to .env and fill out private details

    Then add the .env.dist to your gitignore
  • 1
    @gitpush this is a bad idea
Add Comment