Browse Source

issue-5388: Fixes GCP Workload Identity Federation auth issue (#5392)

Signed-off-by: Bharath B <bhb@redhat.com>
Co-authored-by: Gergely Brautigam <skarlso777@gmail.com>
Bharath B 6 months ago
parent
commit
d21a82e8ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/provider/gcp/secretmanager/workload_identity_federation.go

+ 1 - 1
pkg/provider/gcp/secretmanager/workload_identity_federation.go

@@ -295,7 +295,7 @@ func (w *workloadIdentityFederation) updateExternalAccountConfigWithSubjectToken
 		ns = *w.config.ServiceAccountRef.Namespace
 	}
 	config.SubjectTokenSupplier = &k8sSATokenReader{
-		audience:         config.Audience,
+		audience:         w.config.Audience,
 		subjectTokenType: workloadIdentitySubjectTokenType,
 		saTokenGenerator: w.saTokenGenerator,
 		saAudience:       w.config.ServiceAccountRef.Audiences,