Azure Kubernetes Service (AKS)
TMA-AKS-3.1.4
Ensure that the azure.json file ownership is set to root:root
MoyenneNiveau 1Automatiséeaks
Description
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.
Méthode de vérification
Méthode d'audit: Commande 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- Sortie attendue
compliant
Méthode de correction
Méthode de correction: Commande shell
shell
chown root:root /etc/kubernetes/azure.jsonPropriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- aksworker-nodefile-permissions
- Référence
- CIS Azure Kubernetes Service (AKS) Benchmark v2.0.0 - 3.1.4 Ensure that the azure.json file ownership is set to root:root
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
shell
tmaegis scan --target aks