Just wondering if anyone has used Prefect with Has...
# ask-community
a
Just wondering if anyone has used Prefect with Hashicorp Vault before? Any tricks to share?
d
Prefect Cloud uses Vault behind the scenes for Secrets 😉
a
Good to know lol, why isn't there a VaultTask then?! haha
So if I wanted to write my own secret task for dealing with Vault, did you guys just use hvac?
d
We built our secrets-handling logic into our API directly, so our secrets Task just calls the API route
But we’d welcome a VaultSecret Task contribution 👍
👍 1
b
We’ve got one we use for our own Vault if you’d like a starting place @Adam Brusselback
It uses
hvac
and extends
prefect.tasks.secrets.SecretBase
a
@Brian Mesick Would absolutely love that as a starting point
b
Upon reflection it’s pretty specific to our K8s environment, but maybe better than nothing. Configuration is all in the constants (shame on us), Vault authentication happens through a service account JWT token stored on disk in K8s.
👍 1