Skip to main content

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

Medium

Address

Security

Compliance Standards

  • CIS AKS

Triage and Remediation

Remediation

Manual Steps

  1. On every worker node, confirm the file exists and see current ownership:
    Run on: every worker node.
  2. Fix the ownership to root:root:
    Run on: every worker node.
  3. (Optional but recommended) Restrict permissions to owner read/write only:
    Run on: every worker node.
  4. Verify the ownership is now root:root:
    Expected output:
    Run on: every worker node.
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.