Hey everyone, I'm trying to figure out the best approach for managing secrets in my Docker environment. I want to keep sensitive information out of my YAML files and ensure that these secrets are encrypted. I know about Docker secrets in swarm mode, but when I experimented with it in a virtual machine, it felt a bit limited in terms of supported environment variables. On the other hand, third-party secrets management solutions seem quite complex and overwhelming. Can anyone share insights on which route would be the easiest and simplest for managing encrypted secrets?
2 Answers
The choice really depends on your setup and security needs. If your project is small and manageable, a plaintext .env file in Docker Compose can work just fine, as long as you don't push it to a public repository. But if you're dealing with a lot of secrets or if they're constantly changing, looking into a vault management solution like HashiCorp Vault or using services from AWS, Google, or Azure could be the better path to take.
I get where you're coming from! The purpose of environment variables is to make secrets accessible in your Docker environment. There are plenty of options for sourcing those secrets, like using a service like Vault or even an encrypted file in a secured volume. It's about finding the right balance that fits your needs and comfort level.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically