-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 - custodian and c7n-org azure multi cloud bug fixes #6614
azure - custodian and c7n-org azure multi cloud bug fixes #6614
Conversation
Adding credential scopes to the client args to support multi-cloud for azure
Allow azure gov to initialize a session and set the cloud endpoints based on region set on the subscription
…6613) Legacy credentials already does the credential scope within the function.
I originally added Not sure how to test out the legacy cred workflow, so any insight on this would be greatly appreciated. |
@d-van I believe we have very small amount of resources that use legacy, Also, can you please add some test for your change? Like initialize Azure with USGov region, create a client and ensure it uses proper creds? |
Move session initialization in c7n-org. Created a couple of tests for azure us gov, but skip during live as they won't work unless you have access to azure gov
Sorry for the delay on my side. I think lack of provider initialization is a separate issue that we should address for all clouds. If |
Removing initialization from org and adding to provider
…an/cloud-custodian into d-van-azure-multi-clouds-fix
Accidentally committed these changes
@logachev that was it. I made the updates and it works for all cases (c7n commercial + gov and c7n-org commercial + gov) Let me know if there is anything else I need to do! Thanks! |
better error checking for region
…an/cloud-custodian into d-van-azure-multi-clouds-fix
fixing linter issues
defaulting to azure public cloud if region doesn't exist in the region_to_cloud map
…an/cloud-custodian into d-van-azure-multi-clouds-fix
@logachev let us know if we can help out develop and test out anything relating to azure gov. When azure secret comes out, I think we will have resources to test the capabilities out. |
@d-van Thanks! Do you mean Azure KeyVault Secret? |
i think that was in reference to another sovereign cloud endpoint |
If I recall correctly, some/most of the endpoints may be classified so we may need to allow custom endpoint configurations. I guess we'll pick this back up whenever we have to cross the azure secret region bridge. |
This will resolve issues with using multi-cloud with azure for both
custodian
andc7n-org
.custodian
will now pass in the correct credential scopes when specifying a different cloud.c7n-org
will now initialize the azure session properly and set the cloud endpoints.For
c7n-org
requires users to addregion: ${AzureCloudName}
to the account yml fileex:
Issue Link: #6613