azure-func-slots-config-write

derived azure emits CanModifyConfiguration

match (effective permission)

{ "action": "Microsoft.Web/sites/slots/config/Write", "scope_type": "resource|resourceGroup|subscription" }

emit

source typeIdentity
target type*
source<principal>
target<function app deployment slot>
permissionsMicrosoft.Web/sites/slots/config/Write
conditionsservice_state

Narrative

{principal.name} can rewrite config/app settings of slot {target.name} (slots/config/Write).

Raw rule rules/derived/azure/functions.yaml

id: azure-func-slots-config-write
emits: CanModifyConfiguration
match_effective_permission:
  action: Microsoft.Web/sites/slots/config/Write
  scope_type: resource|resourceGroup|subscription
emit:
  source_type: Identity
  target_type: '*'
  source: <principal>
  target: <function app deployment slot>
  permissions:
  - Microsoft.Web/sites/slots/config/Write
  conditions:
  - service_state
  escalation: 'Slot-scoped analog of config/Write: set WEBSITE_RUN_FROM_PACKAGE, image, startup, or app
    settings on a slot; realized at slot restart/deploy or on swap into a live slot.'
  false_positive_note: Config change on a slot is not immediate execution; realized on restart/deploy
    of the slot or when the slot is swapped into a running slot -> CONDITIONAL(service_state).
  narrative: '{principal.name} can rewrite config/app settings of slot {target.name} (slots/config/Write).'
move · open · esc close