Skip to content

Commit 82681f2

Browse files
authored
Fix gcp oidc audience (#2198)
We're not setting the audience correctly if escEnvOrg is set in config. they need to always match
2 parents 13c3236 + 771f23b commit 82681f2

File tree

1 file changed

+2
-2
lines changed
  • gcp-ts-oidc-provider-pulumi-cloud

1 file changed

+2
-2
lines changed

gcp-ts-oidc-provider-pulumi-cloud/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ const identityPool = new gcp.iam.WorkloadIdentityPool(`identity-pool`, {
4242

4343
const oidcProvider = new gcp.iam.WorkloadIdentityPoolProvider(`identity-pool-provider`, {
4444
workloadIdentityPoolId: identityPool.workloadIdentityPoolId,
45-
workloadIdentityPoolProviderId: `pulumi-cloud-${pulumi.getOrganization()}-oidc`,
45+
workloadIdentityPoolProviderId: `pulumi-cloud-${escEnvOrg}-oidc`,
4646
oidc: {
4747
issuerUri: issuer,
48-
allowedAudiences: [`gcp:${pulumi.getOrganization()}`],
48+
allowedAudiences: [`gcp:${escEnvOrg}`],
4949
},
5050
attributeMapping: {
5151
"google.subject": "assertion.sub",

0 commit comments

Comments
 (0)