AKS Kubernetes RBAC is disabled

Use Kubernetes RBAC in AKS to limit user and service-account operations and apply least privilege.

Description

On a new Crossplane AKSCluster, set disableRBAC: false to enable Kubernetes RBAC. Roles and bindings determine which operations authenticated users and service accounts may perform.

Potential impact

Unneeded cluster-wide privileges can let one account change or delete another workload’s resources.

Remediation

Migrate an existing non-RBAC cluster to a separately named, RBAC-enabled one. Limit grants to required namespaces, resources and operations, and remove unneeded administrator access. Before and after cutover, test allowed and denied actions and verify the applications and their data.

Examples

The legacy compute.azure.crossplane.io/v1alpha3 excerpts show creation settings for two nodes. Supply the actual resource name and the remaining node and network configuration.

Before

yaml
apiVersion: compute.azure.crossplane.io/v1alpha3
kind: AKSCluster
spec:
  location: eastus
  nodeCount: 2
  disableRBAC: true

After

yaml
apiVersion: compute.azure.crossplane.io/v1alpha3
kind: AKSCluster
spec:
  location: eastus
  nodeCount: 2
  disableRBAC: false

References