is there a way to use secrets when registering a flow? E.g, I want to register flows via a CI pipeline, however I keep getting “local secret not found”. I would have thought that logging in w/ the cli and setting my backend to cloud wouldve forced prefect to look at cloud secrets, but maybe I am missing something? Setting environment variables does work, but I’d like to try to avoid specifying secrets via the UI and in circleci if possible.
k
Kevin Kho
05/14/2021, 4:55 PM
Hi @Zach Schumacher, is this what you’re looking for ?
Kevin Kho
05/14/2021, 4:55 PM
Oh I see what you mean
Kevin Kho
05/14/2021, 5:01 PM
Will ask the team about this.
z
Zach Schumacher
05/14/2021, 5:21 PM
yeah i guess what i want is a lazy secret that only evaluates on cloud? Maybe the answer is just it has to be encapsulated in a task Would be cool if i could use secrets when setting env vars on a k8s run config object, tho.
Zach Schumacher
05/14/2021, 5:24 PM
Copy code
# something like this
flow.run_config = KubernetesRun(env={"MY_SECRET": CloudSecret("MY_SECRET")})
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.