Skip to content

Encapsulating secrets in Ressource Managers #4072

Answered by sm-Fifteen
sm-Fifteen asked this question in Q&A
Discussion options

You must be logged in to vote

Right, so it seems like my entire premise was misguided. You can encapsulate secrets (prefect.client.Secret) inside any task just as well as you can have secret tasks (prefect.tasks.secrets.PrefectSecret) that feed into other tasks, and resource managers are no different from any other task. The problem is that using resource managers for non-serializable results (like API sessions or database connections) will run into the same problems as having non-serializable results for any other task: they can't be passed between tasks running on different processes so the flow won't work on a DaskExecutor set to use processes.

Like the doc says, "This subtle and technical constraint actually infor…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sm-Fifteen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant