Storing Secrets
I have a background worker and want to configure secrets but don't know whats the best practice for it. I have this worker and database to it containerized and want to inject connection strings and some passwords securly to simulate production. Whats the best practice and is there a youtube video I can watch for handling injection of sensetive info?
9 Replies
Is your goal just to inject the secrets into the container itself for the code to access?
Since this worker is conteinerized I would have to inject these secrets from docer-compose file. But also I want to know where those passwords should be kept
@Ryan H.
Have you looked into Docker Secrets? Seems like it's perfect for your use case
the thing is that I could not find a source for me to see how it is done
that why I asked for either explanation or a youtube video
Can start with the documentation: https://docs.docker.com/compose/how-tos/use-secrets/
Docker Documentation
Secrets in Compose
Learn how to securely manage runtime and build-time secrets in Docker Compose.
I haven't seen any videos on it so I can't really recommend one, but the documentation is a good place to start
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
Ohh yes true. I was coming at it from the pov of the containerized app being short-lived. Didn't consider if Dachi's containers are long-lived or not
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View