Docker Secrets vs. Third-Party Secrets Managers: What’s the Best Option?

0
16
Asked By CuriousCoder42 On

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

Answered By TechSavvy101 On

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.

Answered By DevNinja88 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.