https://prefect.io logo
g

Gabe Villasana

09/01/2023, 7:27 PM
Hi team, I'm using Doppler for secrets management and want to configure a prefect deployment on Prefect cloud so that I can run flows that are triggered via code. Is there a way I can properly setup the prefect deployment with doppler so that secrets are injected at deployment time?
s

Sean Williams

09/01/2023, 10:12 PM
I don't think there's a direct integration, but from the Doppler docs, it looks like you might be able to grab a secret via their API, and use it in your flow code.
Copy code
import requests

url = "<https://api.doppler.com/v3/configs/config/secret?project=PROJECT_NAME&config=CONFIG_NAME&name=SECRET_NAME>"

headers = {"accept": "application/json"}

response = requests.get(url, headers=headers)

print(response.text)
e

Ethan Veres

09/05/2023, 3:44 PM
@Gabe Villasana I use Doppler too and I had to create a Docker image for the deployment and use that (along with passing the doppler token)
🙌 1