TMA-CASSANDRA-2.2
Ensure that authorization is enabled for Cassandra databases
KritičnaNivo 1Automatskacassandra
Opis
Authorization is pluggable in Cassandra and is configured using the authorizer setting in cassandra.yaml. Cassandra ships with two options included in the default distribution, AllowAllAuthenticator and CassandraAuthorizer. The default, AllowAllAuthenticator performs no checking which grants all permissions to all roles. Checks /etc/cassandra/cassandra.yaml (package install; SKIP when it does not exist).
Kako se proverava
Metod provere: Obrazac u datoteci
- Datoteka
/etc/cassandra/cassandra.yaml- Obrazac
(?m)^authorizer:[ \t]*(?:\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+class_name[ \t]*:[ \t]*)?['\x22]?(?:[\w.]*\.)?(?:CassandraAuthorizer)\b
Kako se ispravlja
Metod ispravke: Smernica ili zakrpa infrastrukture
Set 'authorizer: CassandraAuthorizer' in cassandra.yaml, rolling-restart the nodes, then grant least-privilege permissions to roles.
Svojstva
- Operativni sistemi
- Bilo koji
- Oznake
- cassandraauthorization
- Referenca
- CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 2.2 Ensure that authorization is enabled for Cassandra databases
Proverite ovaj računar
Pokrenite ovo na računaru za koji imate dozvolu za proveru. Skeniranje radi u režimu samo za čitanje.
shell
tmaegis scan --target cassandra