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

조치 방법

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

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