<#3108 [Docs] Improve Flyte Secrets documentation>...
# flyte-github
a
#3108 [Docs] Improve Flyte Secrets documentation Issue created by cosmicBboy Description The current documentation on using secrets in Flyte tasks only shows how to access them in the task/workflow definitions. The purpose of this this issue is to improve the docs by adding code examples on how exactly to add secret key/value pairs to a Flyte cluster, e.g.:
Copy code
kubectl -n flytesnacks-development create secret generic user-info --from-literal=username=foo --from-literal=password=bar
Additionally link the k8s docs for more details • https://kubernetes.io/docs/concepts/configuration/secret/#creating-a-secrethttps://kubernetes.io/docs/tasks/configmap-secret/managing-secret-using-kubectl/ Similar improvements should be made for • Vault: • Link https://developer.hashicorp.com/vault/tutorials/getting-started/getting-started-first-secret#write-a-secret • Briefly touch on authentication, roles, and policies with links out to relevant docs • AWS: • Link https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_secret.html • Clarify that the AWS Secret Manager plugin expects secrets with name=
group:key
and secret-string as plaintext value (not key/value json) • Briefly touch on IAM roles and policies with links out to relevant docs Bonus: Improve the secrets guide by front-loading the code examples and moving the exposition to the bottom of the page (or otherwise rearranging it so it flows better for the end user). Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte