TMAegis
Thêm quy tắc cho cassandra

TMA-CASSANDRA-3.6

Ensure that Data Center Authorizations is activated

Trung bìnhCấp 1Tự độngcassandra

Mô tả

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).

Cách kiểm tra

Phương pháp kiểm tra: Mẫu tệp

Tệp
/etc/cassandra/cassandra.yaml
Mẫu khớp
(?m)^network_authorizer:[ \t]*(?:\n(?:[ \t]*(?:#[^\n]*)?\n|[ \t]+[^\n]*\n)*?[ \t]+class_name[ \t]*:[ \t]*)?['\x22]?(?:[\w.]*\.)?(?:CassandraNetworkAuthorizer)\b

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

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

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
cassandraauthorization
Tham chiếu
CIS Apache Cassandra 5.0 Benchmark v1.1.0 - 3.6 Ensure that Data Center Authorizations is activated

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target cassandra