TMAegis
kubernetes のその他のルール

TMA-KUBERNETES-1.1.8

Ensure that the etcd pod specification file ownership is set to root:root

高レベル 1自動kubernetes

説明

Ensure that the /etc/kubernetes/manifests/etcd.yaml file ownership is set to root:root.

チェック方法

監査方法: シェルコマンド

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
期待される出力
compliant

修正方法

修正方法: シェルコマンド

shell
chown root:root /etc/kubernetes/manifests/etcd.yaml

プロパティ

オペレーティングシステム
すべて
タグ
kubernetescontrol-planeetcdfile-permissions
参照
CIS Kubernetes Benchmark v2.1.0 - 1.1.8 Ensure that the etcd pod specification file ownership is set to root:root

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target kubernetes