The storage account has http traffic allowed
ID |
azure_https_storage_account |
Severity |
critical |
Vendor |
Azure |
Resource |
Encryption |
Tags |
reachable |
Description
The storage account has http traffic allowed. To allow only the https traffic the property https_only
must be true.
Learn more about this topic at Azure storage account https traffic.
Examples
- name: Example playbook
hosts: localhost
tasks:
- name: configure firewall and virtual networks
azure_rm_storageaccount:
resource_group: myResourceGroup
name: clh0002
type: Standard_RAGRS
https_only: false
network_acls:
bypass: AzureServices,Metrics
default_action: Deny
virtual_network_rules:
- id: /subscriptions/mySubscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet
action: Allow
ip_rules:
- value: 1.2.3.4
action: Allow
- value: 123.234.123.0/24
action: Allow
Mitigation / Fix
- name: Example playbook
hosts: localhost
tasks:
- name: configure firewall and virtual networks
azure_rm_storageaccount:
resource_group: myResourceGroup
name: clh0002
type: Standard_RAGRS
https_only: true #<-- Active https only (default value)
network_acls:
bypass: AzureServices,Metrics
default_action: Deny
virtual_network_rules:
- id: /subscriptions/mySubscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet
action: Allow
ip_rules:
- value: 1.2.3.4
action: Allow
- value: 123.234.123.0/24
action: Allow