Azure / application-gateway-kubernetes-ingress

This is an ingress controller that can be run on Azure Kubernetes Service (AKS) to allow an Azure Application Gateway to act as the ingress for an AKS cluster.
https://azure.github.io/application-gateway-kubernetes-ingress
MIT License
677 stars 420 forks source link

The access token has been obtained for wrong audience or resource error #1556

Closed gischethans closed 1 year ago

gischethans commented 1 year ago

Describe the bug The ingress-azure pod goes into CrashLoopBackOff status with the below error when the environment is set to AzureUSGovernmentCloud. The issue does not occur on older versions like 1.6.0

Message="The access token has been obtained for wrong audience or resource 'https://management.azure.com'. It should exactly match with one of the allowed audiences 'https://management.core.usgovcloudapi.net/','https://management.core.usgovcloudapi.net','https://management.usgovcloudapi.net/','https://management.usgovcloudapi.net'.""

To Reproduce Install 1.7.1 version of the controller.

Ingress Controller details

akshaysngupta commented 1 year ago

This is fixed in AGIC 1.7.2.