TMAegisBeta
Aturan lainnya untuk aks

Azure Kubernetes Service (AKS)

TMA-AKS-3.1.4

Ensure that the azure.json file ownership is set to root:root

SedangLevel 1Otomatisaks

Deskripsi

The azure.json file on an AKS worker node contains Azure cloud-provider configuration used by Kubernetes components to interact with Azure resources such as load balancers, storage, and networking. Ensure that the file ownership is set to root:root. Runs on each AKS node; SKIPs where /etc/kubernetes/azure.json is absent.

Cara pemeriksaan

Metode audit: Perintah shell

shell
set -f
f=""; for x in /etc/kubernetes/azure.json; do if [ -e "$x" ]; then f=$x; break; fi; done
[ -n "$f" ] || exit 1
o=$(stat -Lc %U:%G "$f") || exit 1
if [ "$o" = "root:root" ]; then echo compliant; else echo "noncompliant: $f $o"; fi
Output yang diharapkan
compliant

Cara perbaikan

Metode perbaikan: Perintah shell

shell
chown root:root /etc/kubernetes/azure.json

Properti

Sistem operasi
Apa saja
Tag
aksworker-nodefile-permissions
Referensi
CIS Azure Kubernetes Service (AKS) Benchmark v2.0.0 - 3.1.4 Ensure that the azure.json file ownership is set to root:root

Periksa host ini

Jalankan ini pada mesin yang diizinkan untuk Anda audit. Pemindaian bersifat hanya baca.

shell
tmaegis scan --target aks