azure-kv-eff-secret-get

explicit azure emits HasPermission

match (effective permission)

{ "action": "Microsoft.KeyVault/vaults/secrets/getSecret/action", "resource_type": "Microsoft.KeyVault/vaults/secrets" }

emit

source typeIdentity
target type*
source<principal>
target<secret node>
permissionsMicrosoft.KeyVault/vaults/secrets/getSecret/action

Narrative

{principal.name} effectively has secrets/getSecret on {secret.name}.

Raw rule rules/explicit/azure-keyvault.yaml

id: azure-kv-eff-secret-get
emits: HasPermission
applies_to:
- azure
match_effective_permission:
  action: Microsoft.KeyVault/vaults/secrets/getSecret/action
  resource_type: Microsoft.KeyVault/vaults/secrets
emit:
  source_type: Identity
  target_type: '*'
  source: <principal>
  target: <secret node>
  api_source: roleAssignments evaluation | policy evaluation
  permissions:
  - Microsoft.KeyVault/vaults/secrets/getSecret/action
  narrative: '{principal.name} effectively has secrets/getSecret on {secret.name}.'
move · open · esc close