TMAegisBeta
Weitere Regeln für cassandra

Apache Cassandra

TMA-CASSANDRA-CONFIG-PERMISSIONS

Ensure cassandra.yaml is not writable by group or readable by others

MittelStufe 1Automatisiertcassandra

Beschreibung

cassandra.yaml can contain keystore and truststore passwords; restrict it to mode 640 or stricter. Checks /etc/cassandra/cassandra.yaml (SKIP when it does not exist; tarball installs keep it under $CASSANDRA_HOME/conf).

So wird geprüft

Prüfmethode: Shell-Befehl

shell
p=$(stat -c %a /etc/cassandra/cassandra.yaml 2>/dev/null) || exit 1; if [ $((0$p & 037)) -eq 0 ]; then echo compliant; else echo "mode $p"; fi
Erwartete Ausgabe
compliant

So wird behoben

Behebungsmethode: Shell-Befehl

shell
chmod 640 /etc/cassandra/cassandra.yaml

Eigenschaften

Betriebssysteme
Beliebig
Tags
cassandradatabasepermissionsfilesystem
Referenz
CIS Apache Cassandra Benchmark - File Permissions / Configuration Files (verify section number for your release)

Diesen Host prüfen

Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.

shell
tmaegis scan --target cassandra