https://prefect.io logo
n

Niclas Roos

04/21/2022, 5:36 PM
Hi, I’ve just started testing out prefect 2.0 but I can’t find secrets, are they not there anymore?
k

Kevin Kho

04/21/2022, 5:37 PM
Not yet. You’d need to use environment variables
n

Niclas Roos

04/21/2022, 5:39 PM
can I set them in profiles.toml?
k

Kevin Kho

04/21/2022, 5:46 PM
YEs with:
Copy code
import prefect.settings
prefect.settings.PREFECT_HOME.value()
as seen here
n

Niclas Roos

04/21/2022, 5:49 PM
thanks
z

Zanie

04/21/2022, 6:09 PM
You won’t be able to reuse settings for custom variables, I believe we ban unknown keys at the moment.
Formal support for secrets is coming, but not available yet.
d

davzucky

04/22/2022, 1:08 PM
@Zanie will it be in the next beta?
z

Zanie

04/22/2022, 3:10 PM
Not likely, we’re working on some important design that needs to happen first still.
d

davzucky

04/23/2022, 12:31 AM
Ok thank you for the reply. Looking forward to see that feature
5 Views