My current services run on Windows in IIS. I have them run as a Service Account user that is part of my Domain. This user runs the app pool for the service and is also given the needed permissions to the database. Then our connection strings can just use integrated security to connect to our SQL Server databases.
The benefit of this is that it can be setup in advance and the code/connection strings do not need to have any passwords.
As I am moving to docker containers I am finding this a difficult situation to keep using. My containers run as root or some other non-company user. So I can't just use integrated security. (And even if I could make my containers run as a domain user, I don't know that it would be a good practice.)
How can I keep passwords out of my database connection strings and configuration when running in containers?