-
Notifications
You must be signed in to change notification settings - Fork 79
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
OIDC Authentication Support #432
Comments
Hey @roux-doo, thanks for this feature request I think some of this functionality is already in the plugin, but I haven't tested it and this linked issue below may be blocking you (although I have a PR open to fix that). Whenever you use a https://github.com/hashicorp/terraform-provider-azurerm/blob/bea0f8f45689d1d1c01c6a6979e7805d280177e0/internal/provider/provider.go#L468-L469 in the provider, and we pass in the same options in this Packer plugin, packer-plugin-azure/builder/azure/common/client/azure_authorizer.go Lines 76 to 82 in 6c21022
You'd just need to pass in the token as a However the functionality of |
Is it working for anyone? I am using a service using OIDC to create a packer build image. It has been failing for any reason |
Description
Requesting to add OIDC authentication arguments that are present on the Terraform Azure providers (oidc_token, oidc_token_file_path, use_oidc). This will allow the Packer plugin to run Azure Commercial and Azure Government builds congruently instead of separately in CI/CD systems such as GitLab that support OIDC.
Potential References
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs#oidc_token
The text was updated successfully, but these errors were encountered: