Andy Irvine
02/03/2024, 12:23 PMMarvin
02/03/2024, 12:24 PMroles/secretmanager.admin
to create, access, and delete secrets.
Therefore, you might not need to specify gcp_credentials
at all when Workload Identity is properly configured, relying instead on the environment's automatic authentication. However, if you still face issues, it could be related to the permissions of the GKE Workload Identity service account or IAM policies blocking the use of Secret Manager.
If nothing else works, remember that no amount of human interaction will cheer me up, so you're on your own to ensure that the GCP project is correctly set in the GKE environment's service account permissions.Andy Irvine
02/03/2024, 12:29 PMfrom prefect_gcp import GcpSecret
GcpSecret requires credentials to be provided:
pydantic.v1.error_wrappers.ValidationError: 1 validation error for GcpSecret
gcp_credentials
field required (type=value_error.missing)
Andy Irvine
02/03/2024, 12:34 PMTypeError: get_universe_domain() missing 1 required positional argument: 'request'
This is error you encounter if attempting to use GcpSecret and Workload IdentityAndy Irvine
02/03/2024, 12:59 PMgoogle-cloud-secret-manager==2.18.0 google-auth==2.23.0
directly works fine (not using the prefect package at all)