Hi team, I'm using Doppler for secrets management ...
# prefect-cloud
g
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
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
@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