azureblog.co.uk
← cd ~/roles
// roles/azure · containers

Azure Kubernetes Fleet Manager RBAC Reader for Member ClustersAzure built-in role

Allows read-only access to see most objects in a namespace. It does not allow viewing roles or role bindings. This role does not allow viewing Secrets, since reading the contents of Secrets enables access to ServiceAccount credentials in the namespace, which would allow API access as any ServiceAccount in the namespace (a form of privilege escalation). Applying this role at cluster scope will give access across all namespaces.

Role ID463ad26c-fcce-4469-9c7f-5653d8acbab5
CategoryContainers
Actions4
Data actions31

Before you assign it

  • It reaches the data, not just the resource. It has 31 data actions, such as reading blobs, secrets or messages.

What it can do

PermissionWhat it allows
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
Microsoft.Resources/subscriptions/operationresults/readGet the subscription operation results.
Microsoft.Resources/subscriptions/readGets the list of subscriptions.
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.

Data actions

PermissionWhat it allows
Microsoft.ContainerService/fleets/members/apps/controllerrevisions/readReads controllerrevisions
Microsoft.ContainerService/fleets/members/apps/daemonsets/readReads daemonsets
Microsoft.ContainerService/fleets/members/apps/deployments/readReads deployments
Microsoft.ContainerService/fleets/members/apps/replicasets/readReads replicasets
Microsoft.ContainerService/fleets/members/apps/statefulsets/readReads statefulsets
Microsoft.ContainerService/fleets/members/autoscaling/horizontalpodautoscalers/readReads horizontalpodautoscalers
Microsoft.ContainerService/fleets/members/batch/cronjobs/readReads cronjobs
Microsoft.ContainerService/fleets/members/batch/jobs/readReads jobs
Microsoft.ContainerService/fleets/members/configmaps/readReads configmaps
Microsoft.ContainerService/fleets/members/discovery.k8s.io/endpointslices/readReads endpointslices
Microsoft.ContainerService/fleets/members/endpoints/readReads endpoints
Microsoft.ContainerService/fleets/members/events.k8s.io/events/readReads events
Microsoft.ContainerService/fleets/members/events/readReads events
Microsoft.ContainerService/fleets/members/extensions/daemonsets/readReads daemonsets
Microsoft.ContainerService/fleets/members/extensions/deployments/readReads deployments
Microsoft.ContainerService/fleets/members/extensions/ingresses/readReads ingresses
Microsoft.ContainerService/fleets/members/extensions/networkpolicies/readReads networkpolicies
Microsoft.ContainerService/fleets/members/extensions/replicasets/readReads replicasets
Microsoft.ContainerService/fleets/members/limitranges/readReads limitranges
Microsoft.ContainerService/fleets/members/metrics.k8s.io/pods/readReads pods
Microsoft.ContainerService/fleets/members/metrics.k8s.io/nodes/readReads nodes
Microsoft.ContainerService/fleets/members/namespaces/readReads namespaces
Microsoft.ContainerService/fleets/members/networking.k8s.io/ingresses/readReads ingresses
Microsoft.ContainerService/fleets/members/networking.k8s.io/networkpolicies/readReads networkpolicies
Microsoft.ContainerService/fleets/members/persistentvolumeclaims/readReads persistentvolumeclaims
Microsoft.ContainerService/fleets/members/pods/readReads pods
Microsoft.ContainerService/fleets/members/policy/poddisruptionbudgets/readReads poddisruptionbudgets
Microsoft.ContainerService/fleets/members/replicationcontrollers/readReads replicationcontrollers
Microsoft.ContainerService/fleets/members/resourcequotas/readReads resourcequotas
Microsoft.ContainerService/fleets/members/serviceaccounts/readReads serviceaccounts
Microsoft.ContainerService/fleets/members/services/readReads services

Assign it

Scope it as tightly as you can: a resource or resource group rather than the whole subscription.

azure cli
az role assignment create \
  --assignee "jane.doe@contoso.com" \
  --role "Azure Kubernetes Fleet Manager RBAC Reader for Member Clusters" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Azure Kubernetes Fleet Manager RBAC Reader for Member Clusters" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '463ad26c-fcce-4469-9c7f-5653d8acbab5')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '463ad26c-fcce-4469-9c7f-5653d8acbab5')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "463ad26c-fcce-4469-9c7f-5653d8acbab5"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other containers roles

Find the smallest role for a task →