azure-appsvc-start

derived azure emits CanStart

match (effective permission)

{ "action": [ "Microsoft.Web/sites/start/action", "Microsoft.Web/sites/restart/action" ], "scope_type": "resource|resourceGroup|subscription" }

emit

source typeIdentity
target typeCompute
source<principal>
target<Microsoft.Web/sites>
permissionsMicrosoft.Web/sites/start/action Microsoft.Web/sites/restart/action

Narrative

{principal.name} can start/restart {target.name} (start/restart action) to enable/realize code execution.

Raw rule rules/derived/azure/appservice.yaml

id: azure-appsvc-start
emits: CanStart
match_effective_permission:
  action:
  - Microsoft.Web/sites/start/action
  - Microsoft.Web/sites/restart/action
  scope_type: resource|resourceGroup|subscription
emit:
  source_type: Identity
  target_type: Compute
  source: <principal>
  target: <Microsoft.Web/sites>
  permissions:
  - Microsoft.Web/sites/start/action
  - Microsoft.Web/sites/restart/action
  note: 'Realizes CONDITIONAL(service_state) execution edges: start a stopped app or restart to load new
    code/config.'
  narrative: '{principal.name} can start/restart {target.name} (start/restart action) to enable/realize
    code execution.'
move · open · esc close