This guide will show you how to use the Doppler DigitalOcean Marketplace App to securely manage secrets for applications hosted on DigitalOcean.
- You have created a project in Doppler
- You have a DigitalOcean account
- You are familiar with creating and configuring a Droplet
Create a Service Token to provide read-only access to a specific config, then copy the Service Token value which we'll use when configuring the Droplet.
Go to the Doppler DigitalOcean Marketplace page, then click the Create Doppler Droplet button.
This will take you to the DigitalOcean dashboard to configure your Droplet for launch.
Configure your Droplet until you reach the Select additional options section, then click the User data checkbox.
In the User data text area, enter the following (using your Service Token value) so Doppler is configured to supply secrets to your application:
#!/bin/bash # Persist the Doppler Service Token for running your application echo 'export DOPPLER_TOKEN="dp.st.xxxx"' >> /root/.bashrc # Remove service token value from bash history history -c
Continue configuring your Droplet, then click the Create Droplet button.
Now that the Doppler Droplet has been created, let's sign-in using ssh to test the Doppler CLI can fetch secrets successfully.
The username is root and you'll need the Droplet public IP address (ipv4):
Once logged in, test the Doppler CLI is configured correctly by printing a list of the secret names belonging to the config:
doppler secrets --only-names
If you're new to Doppler, check out our Getting Started Guide to learn more about how to supply secrets to your application.
Now you know to use the Doppler DigitalOcean Marketplace App to securely manage secrets for applications hosted on DigitalOcean.
Updated 22 days ago