仓库指标
- Star
- (13,071 star)
- PR 合并指标
- (平均合并 24天 6小时) (30 天内合并 30 个 PR)
描述
ISSUE TYPE
- Bug Report
SUMMARY
Azure Keyvault lookup plugin not working for Azure Government. Vague "Authentication Error" popup with no details or log.
The azure keyvault credentials plugin found here: awx/awx/main/credential_plugins/azure_kv.py
ENVIRONMENT
- AWX version: 14.1.0
- AWX install method: docker on linux
- Ansible version: 2.9.11
- Operating System: RHEL 7.7
- Web Browser: Chrome
STEPS TO REPRODUCE
Create Microsoft Azure Key Vault credential type. Populate details with Azure Government Keyvault and Application registration Select Cloud Environment "AzureGovernment" Save credential Click Test, Enter Valid Secrete name
EXPECTED RESULTS
Microsoft Azure Keyvault:Test Passed!
ACTUAL RESULTS
Red Error message Microsoft Azure Keyvault: Authentication Error
ADDITIONAL INFORMATION
This issue is related to Feature Idea #5138 I had previously submitted. I was unable to validate functionality before that issues was closed.
I think the this is failing because the ServicePrincipalCredentials method does not contain cloud_environment=azure_cloud.AZURE_US_GOV_CLOUD
Or because the KeyVaultClient method is not given the base_url for the government API endpoint.
On https://docs.microsoft.com/en-us/azure/developer/python/azure-sdk-authenticate?tabs=cmd
there is a section on Azure Sovereign or national Cloud logons.