azure-rediscache-effective-write-permission

explicit azure emits HasPermission

match (effective permission)

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

emit

source typeIdentity
target type*
source<principal>
target<Redis cache node (Cache generic_type)>
permissionsMicrosoft.Cache/redis/write

Narrative

{principal.name} has effective Microsoft.Cache/redis/write on {cache.name}. This permission covers all cache properties including redisConfiguration (authnotrequired, enableNonSslPort), network access settings, and managed identity assignment.

Raw rule rules/explicit/azure-rediscache.yaml

id: azure-rediscache-effective-write-permission
emits: HasPermission
applies_to:
- azure
match_effective_permission:
  action: Microsoft.Cache/redis/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/write
  narrative: '{principal.name} has effective Microsoft.Cache/redis/write on {cache.name}. This permission
    covers all cache properties including redisConfiguration (authnotrequired, enableNonSslPort), network
    access settings, and managed identity assignment.'
move · open · esc close