-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Draft] [flytekit] Polish - Secrets #6141
Comments
I agree with renaming For accessing, I like having secrets in the name somewhere: |
just like this or with the key as @thomasjpfan suggested? If just like this, how do we deal with group? or limit only to secrets with no group?
this would be backwards incompatible though - is that okay? |
We should also have an explicit environment var name in the secret definition: |
I would continue to have group and key for flytekit. If we want the simple def get_secret(key: str, group: Optional[str] = None):
... |
I would like to also change the order of key and group in This is potentially a breaking change though, but having |
|
Secrets
This is a series of tickets to improve the flytekit authoring experience. If any changes are not possible to make in a backwards-compatible way, split it out into a separate ticket.
Rename argument
Rename
secret_requests
argument tosecrets
fortask
/eager
/dynamic
. The fact that it is a request is implied. However, probably add a user-facing note somewhere to make sure they don't accidentally put the actual secret in there.Union support
Support a single Secret without having to wrap it in a list (i.e.
secrets: list[Secret]|Secret|None
).Improve accessing
The current method to retrieve secrets (
flytekit.current_context().secrets.get(key="WANDB_API_KEY")
) is too verbose. Let's make it something likeflytekit.access(key="WANDB_API_KEY")
.Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: