azure-rediscache-effective-firewallrules-write-permission
match (effective permission)
{
"action": "Microsoft.Cache/redis/firewallRules/write",
"resource_type": "Microsoft.Cache/redis"
}
emit
| source type | Identity |
|---|---|
| target type | * |
| source | <principal> |
| target | <Redis cache node (Cache generic_type)> |
| permissions | Microsoft.Cache/redis/firewallRules/write |
Narrative
{principal.name} has effective Microsoft.Cache/redis/firewallRules/write on {cache.name}, allowing creation or modification of IP firewall rules (including opening the full internet range 0.0.0.0–255.255.255.255).
Raw rule rules/explicit/azure-rediscache.yaml
id: azure-rediscache-effective-firewallrules-write-permission
emits: HasPermission
applies_to:
- azure
match_effective_permission:
action: Microsoft.Cache/redis/firewallRules/write
resource_type: Microsoft.Cache/redis
emit:
source_type: Identity
target_type: '*'
source: <principal>
target: <Redis cache node (Cache generic_type)>
permissions:
- Microsoft.Cache/redis/firewallRules/write
narrative: "{principal.name} has effective Microsoft.Cache/redis/firewallRules/write on {cache.name},\
\ allowing creation or modification of IP firewall rules (including opening the full internet range\
\ 0.0.0.0\u2013255.255.255.255)."