ancient-wolf-19325
07/17/2024, 11:05 AMvalues.yaml file for the Flyte Helm chart.
Here are the steps to enable GCP Secret Manager:
1. Create Secrets in GCP Secret Manager:
Follow the Union documentation to create your secrets in GCP Secret Manager.
2. Configure Flyte to Use GCP Secret Manager:
Update your values.yaml file to specify the use of GCP Secret Manager. You need to set the secretManagerType to GCP under the webhook configuration.
configuration:
inline:
webhook:
secretManagerType: "GCP"
3. Ensure Proper Permissions:
Make sure that the Google service account (GSA) associated with your Flyte pods has the necessary permissions to access the secrets in GCP Secret Manager. This can be done via Workload Identity or by assigning the appropriate IAM roles to the GSA.
4. Request Secrets in Your Task:
In your Flyte tasks, request the secrets using the Secret class. For example:
from flytekit import Secret, task
@task(secret_requests=[Secret(group="my-secret-group", key="my-secret-key")])
def my_task():
secret_value = flytekit.current_context().secrets.get("my-secret-group", "my-secret-key")
print(f"The secret value is: {secret_value}")ancient-wolf-19325
07/17/2024, 11:05 AM>>For more detailed information, you can refer to the GCP Secret Manager Injector code in the Flyte repository.Would you like more detailed steps or have any specific questions about the configuration? Sources: - Union documentation on enabling Google Secret Manager - GCP Secret Manager Injector code Slack Link https://flyte-org.slack.com/archives/CP2HDHKE1/p1721214284.128849 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.