-
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
Enhancements to azure.azcollection.azure_rm_storageaccount for Improved Security Compliance and Functionality #1330
base: dev
Are you sure you want to change the base?
Conversation
… for Key Vault Encryption Prerequisites,Inclusion of Key Vault Properties in Encryption Block,Incorporate Network ACL Rule Sets in create_account Requests
@chitender Please help fix the error as below:
|
@Fred-sun have updated the documentation. |
@Fred-sun could you please check this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be even better if we could add test cases for the newly added parameters!
@@ -870,11 +981,12 @@ def account_obj_to_dict(self, account_obj, blob_mgmt_props=None, blob_client_pro | |||
allow_blob_public_access=account_obj.allow_blob_public_access, | |||
network_acls=account_obj.network_rule_set, | |||
is_hns_enabled=account_obj.is_hns_enabled if account_obj.is_hns_enabled else False, | |||
allow_shared_key_access=account_obj.allow_shared_key_access if account_obj.allow_shared_key_access else False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be perfect if we could also increase this return value to azure_rm_storageaccount_info.py!
@chitender There is a conflict in the PR you submitted, please help solve the conflict, we will review this PR as soon as possible! Thank you! |
kindly ping! |
@chitender Please help to resolve the conflicting documents, thank you! |
SUMMARY
This feature request proposes several enhancements to the azure.azcollection.azure_rm_storageaccount collection in Ansible. These changes aim to align more closely with Azure security policies and address common functional requirements in managing Azure Storage Accounts.
Option to Enable/Disable allow_shared_key_access for Storage Accounts: Introduce a configurable option to enable or disable shared key access, enhancing security and compliance with organizational policies.
Identity Block for Key Vault Encryption Prerequisites: Implement an identity block within the module to support scenarios requiring user-assigned identities as a prerequisite for Key Vault encryption (CMK encryption).
Inclusion of Key Vault Properties in Encryption Block: Add support for specifying Key Vault properties directly within the encryption block when the encryption source is set to Microsoft.Keyvault. This will facilitate smoother integration with Azure Key Vault for encryption purposes.
Incorporate Network ACL Rule Sets in create_account Requests: Instead of setting network ACLs separately, include them directly in the create_account request. This change aims to streamline the process and reduce the complexity of storage account creation.
ISSUE TYPE
COMPONENT NAME
azure.azcollection.azure_rm_storageaccount
ADDITIONAL INFORMATION
These enhancements are motivated by the need for improved compliance with Azure security policies and functional requirements in resource management. Enforcing security policies at subscription and resource group levels is a common practice, and non-compliance can lead to service denial due to policy violations. The proposed changes address specific areas like encryption, identity management, and network access control, which are crucial for maintaining high-security standards.
not sure how to add verbatim command output, so have added below task snippet which is as per the changes in plugins/modules/azure_rm_storageaccount.py
if i have made any mistakes which are not as per community guidelines then please guide me to correct it as this is first time me raising pull request.