-
-
Notifications
You must be signed in to change notification settings - Fork 387
Description
Is your feature request related to a problem? Please describe.
At the moment, the "MySqlPassword" and "PostgresPassword" fields in the configuration accepts a plain-text password. This is not the most ideal security, since most of the configuration files don't need anywhere near the security that passwords do. Most of the configuration would be useful to check into version control systems and the like, but this is currently not wise as long as database credentials are also stored here.
Describe the solution you'd like
I would suggest an alternate mode for the "MySqlPassword" and "PostgresPassword" parameters that allows administrators to specify a file://<path>
format, and the server would pull the data from the file referenced (i.e. file:///run/secrets/tshock-db.key
).
Describe alternatives you've considered
Treating the entire configuration file as a secret. This is not ideal for reasons outlined above.