azure-aci-write-config

derived azure emits CanModifyConfiguration

match (effective permission)

{ "action": "Microsoft.ContainerInstance/containerGroups/write", "scope_type": "resource|resourceGroup|subscription" }

emit

source typeIdentity
target type*
source<principal>
target<containerGroup>
permissionsMicrosoft.ContainerInstance/containerGroups/write

Narrative

{principal.name} can rewrite the configuration of {target.name} (containerGroups/write) including the image and the identity binding.

Raw rule rules/derived/azure/aci.yaml

id: azure-aci-write-config
emits: CanModifyConfiguration
match_effective_permission:
  action: Microsoft.ContainerInstance/containerGroups/write
  scope_type: resource|resourceGroup|subscription
emit:
  source_type: Identity
  target_type: '*'
  source: <principal>
  target: <containerGroup>
  permissions:
  - Microsoft.ContainerInstance/containerGroups/write
  note: "Can change the identity block (attach/enable MI), image, startup command, and env vars \u2014\
    \ altering what runs and as which identity."
  narrative: '{principal.name} can rewrite the configuration of {target.name} (containerGroups/write)
    including the image and the identity binding.'
move · open · esc close