<#6141 [flytekit] Polish - Secrets> Issue created ...
# flyte-github
c
#6141 [flytekit] Polish - Secrets Issue created by wild-endeavor ## 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 to
secrets
for
task
/
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 like
flytekit.access(key="WANDB_API_KEY")
. ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte