Closed juicybaba closed 6 months ago
4 upvotes in 45 minutes?? Either this is a popular issue or you've got some friends!
4 upvotes in 45 minutes?? Either this is a popular issue or you've got some friends!
Haha, we are working on azure devops project onboarding and would like to understand this one. So, popular issue within the team and all teammates are friends. π
FYI, I have created a number of issues in past few days π
Just as long as they're not all for the OIDC Service Principal stuff.
Guess this is what you're seeing:
Haven't debugged why that's happening yet.
π I see why. Yeah it's broken. Didn't get through all the testing in December after the latest version of the code and this case is just plain wrong. It's sending the OIDC token as the client secret, it needs to exchange the OIDC token for an AzureAD token iirc.
Fix is easy enough. I'm going to manually test all the auth methods tomorrow like I should've done back in December then I'll put up a PR. Published the fix to davidcorrigan714/azuredevops version 1.0.0-pre.5 if you're super eager to try it, hopefully Microsoft can turnaround a new release pretty quick once it's in.
@davidcorrigan714 @xuzhang3 Thank you so much on the quick fix and release! Issue is resolved.
Community Note
Terraform (and Azure DevOps Provider) Version
Affected Resource(s)
azuredevops_XXXXX
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Actual Behavior
I am using an azuredevops connection to run terraform with azurerm/azuread/azuredevops providers. I have the
azuread_application_federated_identity_credential
configured and everything works well with azurerm/azuread provider, but got below error for azuredevops provider.azuredevops provider works well if i switch authentication back to
secret
which indicates the service principal has the corret permission in azure devops.Does azuredevops provider requires a different
azuread_application_federated_identity_credential
oroidc_token
than the other azure providers?azure devops pipeline configuration: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_oidc#:~:text=Azure%20DevOps%20Pipelines
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_oidc#:~:text=Azure%20DevOps%20Pipelines
Steps to Reproduce
terraform apply
Important Factoids
References
0000