vitorvezani / blog

MIT License
1 stars 0 forks source link

[kind-control-plane] Check 1.1.12 - etcd Data Directory Ownership #157

Open fairwinds-insights-staging[bot] opened 2 weeks ago

fairwinds-insights-staging[bot] commented 2 weeks ago

Link to action item

For Node kind-control-plane in namespace

Description: Ensure that the etcd data directory ownership is set to etcd:etcd (Scored)

Audit: ps -ef | grep etcd | grep -- --data-dir | sed 's%.*data-dir[= ]\([^ ]*\).*%\1%' | xargs stat -c %U:%G

Remediation: On the etcd server node, get the etcd data directory, passed as an argument --data-dir, from the below command: ps -ef | grep etcd Run the below command (based on the etcd data directory found above). For example, chown etcd:etcd /var/lib/etcd