azure-containerapps-getauthtoken

derived azure emits CanReadSecret

match (effective permission)

{ "action": "Microsoft.App/containerApps/getAuthtoken/action", "scope_type": "resource|resourceGroup|subscription" }

emit

source<principal>
target<built-in auth/token-store of the containerApp>
permissionsMicrosoft.App/containerApps/getAuthtoken/action

Narrative

{principal.name} can retrieve the built-in auth/token-store token of {target.name} (containerApps/getAuthtoken/action).

Raw rule rules/derived/azure/containerapps.yaml

id: azure-containerapps-getauthtoken
emits: CanReadSecret
match_effective_permission:
  action: Microsoft.App/containerApps/getAuthtoken/action
  scope_type: resource|resourceGroup|subscription
emit:
  source: <principal>
  target: <built-in auth/token-store of the containerApp>
  permissions:
  - Microsoft.App/containerApps/getAuthtoken/action
  false_positive_note: getAuthtoken returns the app's BUILT-IN AUTH / token-store token (user session
    tokens), NOT a managed-identity token. Model as CanReadSecret on the token store only; do NOT emit
    CanRetrieveToken to any MI from this permission.
  narrative: '{principal.name} can retrieve the built-in auth/token-store token of {target.name} (containerApps/getAuthtoken/action).'
move · open · esc close