Hello,
I have a Droplet Autoscale Pool running. However, I need certain (api keys, etc) environment variables on the droplets.
Any advice on how to mount those secrets without exposing them inside the docker image or in my Github repo?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
There are a few ways to do that:
1. Use User Data for Secure Initialization
Every new Droplet in your pool can run a startup script using User Data. This lets you fetch secrets securely at boot.
📌 More on User Data: https://docs.digitalocean.com/products/droplets/how-to/provide-user-data/
2. Use Doppler for Secrets Management
Instead of managing secrets manually, Doppler can handle it for you. DigitalOcean even has a Doppler 1-click install 👉 Doppler Marketplace.
- Bobby