SV-96609r1_rule
V-81895
SRG-APP-000267-DB-000163
MD3X-00-000530
CAT II
10
Edit the MongoDB configuration file (default location: /etc/mongod.conf) and add the following parameter "redactClientLogData" in the security section of that file:
security:
redactClientLogData: "true"
Stop/start (restart) any mongod or mongos using the MongoDB configuration file.
A mongod or mongos running with "security.redactClientLogData" redacts any message accompanying a given log event before logging.
This prevents the mongod or mongos from writing potentially sensitive data stored on the database to the diagnostic log. Metadata such as error or operation codes, line numbers, and source file names are still visible in the logs.
Verify that the MongoDB configuration file (default location: /etc/mongod.conf) contains the following:
security:
redactClientLogData: "true"
If this parameter is not present, this is a finding.
V-81895
False
MD3X-00-000530
A mongod or mongos running with "security.redactClientLogData" redacts any message accompanying a given log event before logging.
This prevents the mongod or mongos from writing potentially sensitive data stored on the database to the diagnostic log. Metadata such as error or operation codes, line numbers, and source file names are still visible in the logs.
Verify that the MongoDB configuration file (default location: /etc/mongod.conf) contains the following:
security:
redactClientLogData: "true"
If this parameter is not present, this is a finding.
M
3265