Engineir
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!
There are a few ways to do that:
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/
Instead of managing secrets manually, Doppler can handle it for you. DigitalOcean even has a Doppler 1-click install 👉 Doppler Marketplace.
- Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.