azure-rediscache-effective-firewallrules-write-permission

explicit azure emits HasPermission

match (effective permission)

{ "action": "Microsoft.Cache/redis/firewallRules/write", "resource_type": "Microsoft.Cache/redis" }

emit

source typeIdentity
target type*
source<principal>
target<Redis cache node (Cache generic_type)>
permissionsMicrosoft.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)."
move · open · esc close