Description
Set enable_rbac: yes when creating the AKS cluster. Use roles and bindings to grant users and service accounts only the Kubernetes API operations they need.
Potential impact
Excessive grants can expose workloads and Secrets to identities that do not need them.
Remediation
An existing non-RBAC cluster requires migration. Create a differently named RBAC-enabled cluster, migrate workloads and data, and test allowed and denied actions as ordinary users and service accounts before cutover.
Examples
The tasks show creation settings for the same cluster name. Supply a region-supported kubernetes_version, a node pool and an identity. Using Azure RBAC for AKS to authorize Entra users requires separate configuration.
Before
yaml
- name: AKS 생성
azure.azcollection.azure_rm_aks:
name: myAKS
resource_group: myResourceGroup
location: eastus
dns_prefix: akstest
kubernetes_version: "{{ kubernetes_version }}"
enable_rbac: no
After
yaml
- name: AKS 생성
azure.azcollection.azure_rm_aks:
name: myAKS
resource_group: myResourceGroup
location: eastus
dns_prefix: akstest
kubernetes_version: "{{ kubernetes_version }}"
enable_rbac: yes