You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)
Issue details
Currently, the OIDC audience is hardcoded to api://AzureADTokenExchange.
In sovereign clouds, Azure is changing the value of the audience. For example, in Azure US Government, the value is now expected to be api://AzureADTokenExchangeUSGov: Azure/login#452.
The current workaround is for users to do the federated token exchange outside of pulumi, and pass in the token via the ARM_OIDC_TOKEN environment variable, but it would be simpler if users could just pass in the audience and not have to know lower level details about how OIDC works, eg ARM_OIDC_AUDIENCE.
I would like an additional optional configuration variable, ARM_OIDC_AUDIENCE to be supported by the azure-native provider. When the value is not set, the audience should continue to default to api://AzureADTokenExchange.
It may also be nice to default the audience to api://AzureADTokenExchangeUSGov when the environment is detected to be AzureUSGovernment, but I suspect that this will be a breaking change for many users that have set up OIDC before the Azure audience default change, so I think this should be opt-in only.
This PR is a copy of #3965 by @robcao, to make CI tests run. Original
description:
-----
This pull request is a potential implementation for
#3963
It adds a new configuration variable for the auth_azidentity module,
ARM_OIDC_AUDIENCE.
When specified, the value of ARM_OIDC_AUDIENCE will be used when making
a request for a federated token. If not specified, the audience will
default to api://AzureADTokenExchange like currently.
Co-authored-by: Robert Cao <[email protected]>
Hello!
Issue details
Currently, the OIDC audience is hardcoded to
api://AzureADTokenExchange
.In sovereign clouds, Azure is changing the value of the audience. For example, in Azure US Government, the value is now expected to be
api://AzureADTokenExchangeUSGov
: Azure/login#452.The current workaround is for users to do the federated token exchange outside of pulumi, and pass in the token via the ARM_OIDC_TOKEN environment variable, but it would be simpler if users could just pass in the audience and not have to know lower level details about how OIDC works, eg
ARM_OIDC_AUDIENCE
.I would like an additional optional configuration variable,
ARM_OIDC_AUDIENCE
to be supported by the azure-native provider. When the value is not set, the audience should continue to default toapi://AzureADTokenExchange
.It may also be nice to default the audience to
api://AzureADTokenExchangeUSGov
when the environment is detected to beAzureUSGovernment
, but I suspect that this will be a breaking change for many users that have set up OIDC before the Azure audience default change, so I think this should be opt-in only.Affected area/feature
Azure Authentication
Implementation
I opened a potential pull request here: #3965
I would be happy to implement this.
The text was updated successfully, but these errors were encountered: