TMAegis
cassandra 관련 규칙 더 보기

TMA-CASSANDRA-3.6

Ensure that Data Center Authorizations is activated

보통레벨 1자동cassandra

설명

Authorization at Data Center level is pluggable in Cassandra and is configured using the network_authorizer setting in cassandra.yaml. Cassandra ships with AllowAllNetworkAuthorizer which allows any role to access any datacenter effectively disabling datacenter authorization; which is the current behavior. The benchmark rates this recommendation Manual; the automated check covers its objective pass criterion. Checks /etc/cassandra/cassandra.yaml (package install; SKIP when it does not exist).

점검 방법

감사 방식: 파일 패턴

파일
/etc/cassandra/cassandra.yaml
패턴
(?m)^network_authorizer:[ \t]*(?:\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+class_name[ \t]*:[ \t]*)?['\x22]?(?:[\w.]*\.)?(?:CassandraNetworkAuthorizer)\b

조치 방법

조치 방식: 가이드 또는 인프라 패치

On each node set 'network_authorizer: CassandraNetworkAuthorizer' in cassandra.yaml and rolling-restart; then restrict roles with ALTER ROLE <r> WITH ACCESS TO DATACENTERS {...}.

속성

운영 체제
모두
태그
cassandraauthorization
참고 자료
CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 3.6 Ensure that Data Center Authorizations is activated

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target cassandra