Unable to read secret using GKEStartPodOperator

141 views
Skip to first unread message

Sugan Raju

unread,
Jan 19, 2023, 10:29:47 PM1/19/23
to cloud-composer-discuss
Hello,
I am trying to create a DAG using GKEStartPodOperator to trigger a task in my kubernetes cluster and am running into issues.

The python script access GCP Secret Manager to fetch secrets and that step keeps failing with the below message 

google.api_core.exceptions.PermissionDenied: 403 Permission 'secretmanager.versions.access' denied for resource

I have already created a binding of role WorkflowIdentityUser between the kubernetes service account(i believe the code uses default service account in the namespace mentioned in the dag) and the service account used to create the composer environment. 

I also verified that the service account used to created the composer environment has access to the secret.

I also verified that when i trigger the script from Kubernetes Job, it works fine. 

Can you please let me know what i am missing here? 

Thanks

Reply all
Reply to author
Forward
0 new messages