Info
Any command running for longer than the profiling limit slowms will be outputted in its entirety to the log. More specifically If I create the admin DB through a createUser command the user's username and password will be outputted in clear with default profiling since the command runs for longer than 100 ms doing index creation.
Lowering the slowms variable will give more frequent command output.
Top User Comments
xgen-internal-githook commented on Wed, 15 Jan 2014 00:15:25 +0000:
Author:
{u'username': u'agralius', u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@10gen.com'}
Message: SERVER-12049 Redact sensitive data from slowms output
Branch: master
https://github.com/mongodb/mongo/commit/bc25799bbeaee8e6133804ffa6fece31e8a62236
Steps to Reproduce
Reproduce:
./mongo
> use foo
> db.setProfilingLevel(0,1) // any command running for longer than 1 ms will be written to the log
> for (var i=0;i
{a:i}
) }
server log output:
[conn1} command admin.$cmd command: { insert: "foo", documents: [
{ _id: ObjectId('52a8c1099cb6ca0e83ee194e'), a: 249.0 }
], ordered: true } keyUpdates:0 reslen:40 12ms
[conn1] command admin.$cmd command: { insert: "foo", documents: [
{ _id: ObjectId('52a8c10a9cb6ca0e83ee2f1a'), a: 5829.0 }
], ordered: true } keyUpdates:0 reslen:40 2ms