azure-sf-app-write-config

derived azure emits CanModifyConfiguration

match (effective permission)

{ "action": "Microsoft.ServiceFabric/managedclusters/applications/write", "scope_type": "resource|resourceGroup|subscription" }

emit

source typeIdentity
target type*
source<principal>
target<serviceFabric application>
permissionsMicrosoft.ServiceFabric/managedclusters/applications/write

Narrative

{principal.name} can rewrite the configuration of application {target.name} (applications/write) including its version and managed-identity binding.

Raw rule rules/derived/azure/servicefabric.yaml

id: azure-sf-app-write-config
emits: CanModifyConfiguration
match_effective_permission:
  action: Microsoft.ServiceFabric/managedclusters/applications/write
  scope_type: resource|resourceGroup|subscription
emit:
  source_type: Identity
  target_type: '*'
  source: <principal>
  target: <serviceFabric application>
  permissions:
  - Microsoft.ServiceFabric/managedclusters/applications/write
  note: Can change the app's identity block (attach/select an MI) and the app version; realizes execution
    as the chosen MI at next deploy/upgrade.
  narrative: '{principal.name} can rewrite the configuration of application {target.name} (applications/write)
    including its version and managed-identity binding.'
move · open · esc close