What are the best practices for managing account credentials and SHA256 secrets and providing them to systemd managed services?
In the old init.d way, I'd just install a script in /etc/default that gets sourced. From there I could import whatever content I want into environment variables which are then available to my services.
So my question is, what is considered "best practice" for providing logind id/password credentials and other "secrets" to systemd managed services? Is passing it via the environment considered "good" or is there an accepted better/more secure way?
(i.e. what is the best place to put your service (e.g. mysql) passwords, SHA256 secrets, etc and how do you most effectively communicate those to long running background services that need it? Is there a better managed way than setting them in the environment before processes are launched by systemd?)