-
Notifications
You must be signed in to change notification settings - Fork 330
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
Azure Government azure_rm_keyvaultsecret_info not able to fetch secrets #331
Comments
This can be fixed (without hard coding environment) relatively trivially. The assignment of authcredential should be performed as follows: azure/plugins/modules/azure_rm_keyvaultsecret_info.py Lines 292 to 297 in 69fe33a
|
@opfpqgoon Thank you for reporting this issue, we will review it as soon as possible, thank you! |
@opfpqgoon I have not had any problems with the latest version of Azure Collection. Can you update to the latest version and try again? Thank you very much!
|
SUMMARY
When trying to use azure_rm_keyvaultsecret_info in an Azure Government subscription no secrets are returned.
ISSUE TYPE
COMPONENT NAME
azure_rm_keyvaultsecret_info
ANSIBLE VERSION
CONFIGURATION
Default
OS / ENVIRONMENT
macOS Catalina
STEPS TO REPRODUCE
Attempt to use azure_rm_keyvaultsecret_info in a playbook with credentials to azure gov subscription in ~/.azure/credentials
EXPECTED RESULTS
ACTUAL RESULTS
I'm positive this is because
resource
is hard coded to "https://vault.azure.net" in azure_rm_keyvaultsecret_info.py:297 as well as the cloud environment defaulting toAzureCloud
in azure_rm_keyvaultsecret_info.py:296I've tested hardcoding the following and can successfully fetch secrets from an AzureUSGovernment keyvault
I'd be happy to provide more info/test any modifications.
FYI it looks like a lot of the collections modules have this same issue. I can confirm that azure_rm_keyvaultkey_info is also hard coded to AzureCloud
The text was updated successfully, but these errors were encountered: