More Info:
The azure.json file should be owned by root:root so only privileged users can access the cloud provider credentials it contains.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS AKS
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On every worker node, confirm the file exists and see current ownership:
Run on: every worker node.
-
Fix the ownership to root:root:
Run on: every worker node.
-
(Optional but recommended) Restrict permissions to owner read/write only:
Run on: every worker node.
-
Verify the ownership is now root:root:
Expected output:Run on: every worker node.
Using kubectl
Using kubectl
kubectl cannot change file ownership on node filesystems, including
/etc/kubernetes/azure.json; this must be fixed directly on every worker node’s host OS. See the Manual Steps section for the exact commands to run on each node to correct ownership and re‑run the audit.Automation
Automation

