-
Notifications
You must be signed in to change notification settings - Fork 884
Fix gcp oidc audience #2198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix gcp oidc audience #2198
Conversation
jkodroff
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch.
|
for my own education, in what cases would someone want to set edit: ohh, escEnvOrg drives which org the environment is actually deployed into, derp. |
|
@nyobe someone can set it if they want to create an environment in a specific org. but we're always setting audience to the default org (which could be different). this fix makes it so that it uses the same org for both |
|
|
||
| const oidcProvider = new gcp.iam.WorkloadIdentityPoolProvider(`identity-pool-provider`, { | ||
| workloadIdentityPoolId: identityPool.workloadIdentityPoolId, | ||
| workloadIdentityPoolProviderId: `pulumi-cloud-${pulumi.getOrganization()}-oidc`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this also be escEnvOrg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, nice catch
We're not setting the audience correctly if escEnvOrg is set in config. they need to always match