azure-bp-artifact-write

explicit azure emits CanModifyCode

match (effective permission)

{ "action": "Microsoft.Blueprint/blueprints/artifacts/write", "scope_type": "subscription|managementGroup" }

emit

source typeIdentity
target typeBuildWorker
source<principal>
target<blueprint assignment(s) that deploy the definition>
permissionsMicrosoft.Blueprint/blueprints/artifacts/write
conditionsservice_state trigger_exists

Narrative

{principal.name} can write blueprint artifacts (Microsoft.Blueprint/blueprints/artifacts/write), gaining CanModifyCode over the definition.

Raw rule rules/explicit/azure-blueprints.yaml

id: azure-bp-artifact-write
emits: CanModifyCode
applies_to:
- azure
match_effective_permission:
  action: Microsoft.Blueprint/blueprints/artifacts/write
  scope_type: subscription|managementGroup
where: []
emit:
  source_type: Identity
  target_type: BuildWorker
  source: <principal>
  target: <blueprint assignment(s) that deploy the definition>
  permissions:
  - Microsoft.Blueprint/blueprints/artifacts/write
  conditions:
  - service_state
  - trigger_exists
  api_source: 'Azure ARM: roleAssignments query filtered by Microsoft.Blueprint/blueprints/artifacts/write'
  narrative: '{principal.name} can write blueprint artifacts (Microsoft.Blueprint/blueprints/artifacts/write),
    gaining CanModifyCode over the definition.'
move · open · esc close