Hi folks—I am trying to save a Snowflake private key passphrase in a PrefectSecret. The issue is, the Python cryptography library expects the passphrase for a rsa_key to be passed in bytes, and my secret has the value as a string. I cannot do
PrefectSecret('PRIVATE_KEY_PASS_PHRASE').encode()
because the encode method is on
str
and
PrefectSecret
returns a
PrefectSecret
. Anyone know how to do this?
k
Kevin Kho
12/23/2021, 9:26 PM
I think you might be able to if you pass the secret to a task and then encode it there? Otherwise need to make your own version of PrefectSecret that does the encode.
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.