TMAegis
mongodb のその他のルール

TMA-MONGODB-2.3

Ensure authentication is enabled in the sharded cluster

高レベル 2自動mongodb

説明

Authentication is enabled in a sharded cluster when the certificate or key files are created and configured for all components. This ensures that every client that accesses the cluster must provide credentials, to include MongoDB instances that access each other within the cluster. Checks the YAML config file /etc/mongod.conf (SKIP when it does not exist). The benchmark requires x.509 membership authentication (keyFile is accepted only for development); applies to sharded clusters and replica sets.

チェック方法

監査方法: ファイルパターン

ファイル
/etc/mongod.conf
パターン
(?m)^[ \t]*clusterAuthMode:[ \t]*['\x22]?x509\b

修正方法

修正方法: ガイダンスまたは IaC パッチ

On every member configure net.tls (mode: requireTLS, certificateKeyFile, CAFile, clusterFile) and security.clusterAuthMode: x509, then perform a rolling restart.

プロパティ

オペレーティングシステム
すべて
タグ
mongodbauthenticationcluster
参照
CIS MongoDB 8 Benchmark v2.0.0 - 2.3 Ensure authentication is enabled in the sharded cluster

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target mongodb --level 2