TMA-KUBERNETES-1.1.8
Ensure that the etcd pod specification file ownership is set to root:root
ÉlevéeNiveau 1Automatiséekubernetes
Description
Ensure that the /etc/kubernetes/manifests/etcd.yaml file ownership is set to root:root.
Méthode de vérification
Méthode d'audit: Commande shell
shell
set -f
f=""; for x in /etc/kubernetes/manifests/etcd.yaml; 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/manifests/etcd.yamlPropriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- kubernetescontrol-planeetcdfile-permissions
- Référence
- CIS Kubernetes Benchmark v2.1.0 - 1.1.8 Ensure that the etcd pod specification 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 kubernetes