Apache Cassandra
TMA-CASSANDRA-3.6
Ensure that Data Center Authorizations is activated
說明
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
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
tmaegis scan --target cassandra