Jen Evenson
02/23/2023, 10:27 PMStéphan Taljaard
02/24/2023, 4:09 PMJen Evenson
02/24/2023, 4:20 PMStéphan Taljaard
02/24/2023, 4:20 PMJen Evenson
02/24/2023, 4:22 PMNate
02/24/2023, 4:32 PMfrom prefect.blocks.system import Secret
my_new_secret = Secret(value=“secret”)
my_new_secret.save(“my-new-secret”)
#so now you have a secret block saved on your workspace
assert Secret.load(“my-new-secret”).get() == “secret”
Is there a new jira integration for Prefect2?what functionality would you like to see from a jira collection? we can work on adding a jira collection at some point
Jen Evenson
02/24/2023, 4:45 PM"secret"
to stuff into this bit: my_new_secret = Secret(value="secret")
For Prefect 1, we were retrieving all the tokens we need from Vault when building the Prefect Docker image and setting env variables/writing to a config.toml file (I forget which we did as I didn't work on that piece) in that image - which gets deployed to our own self-hosted Prefect Cloud in k8s. The jira task then just grabbed the token it needed using the old Secret class. This also allowed each developer to set the tokens needed locally and test locally rather than having to build a new image and push to our Prefect Cloud every 5 minutes.
I guess now each task that needs something from Vault will have to get it itself. We wanted to be lazy and keep getting tokens out of Vault the same way. 🙂