C
C#2w ago
Dachi

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
Ryan H.
Ryan H.2w ago
Is your goal just to inject the secrets into the container itself for the code to access?
Dachi
DachiOP2w ago
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.
Ryan H.
Ryan H.2w ago
Have you looked into Docker Secrets? Seems like it's perfect for your use case
Dachi
DachiOP2w ago
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
Ryan H.
Ryan H.2w ago
Docker Documentation
Secrets in Compose
Learn how to securely manage runtime and build-time secrets in Docker Compose.
Ryan H.
Ryan H.2w ago
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
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Ryan H.
Ryan H.2w ago
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
Unknown User2w ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?