[SERVER-36479] Log redaction does not show planSummary when slow queries are logged Created: 07/Aug/18 Updated: 29/Oct/23 Resolved: 18/Aug/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Logging, Security |
| Affects Version/s: | 3.4.14, 4.0.0 |
| Fix Version/s: | 3.4.17, 3.6.8, 4.0.2, 4.1.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Dmitry Ryabtsev | Assignee: | Kelsey Schubert |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v4.0, v3.6, v3.4
|
||||||||
| Participants: | |||||||||
| Case: | (copied to CRM) | ||||||||
| Description |
|
At present when log redaction is enabled, the planSummary section of the log message (if it's a for a slow query) gets redacted completely:
That makes it difficult to understand why a query is perfoming the way it is. It should not be necessary to have planSummary redacted completely. The redaction should only happen for sensitive elements (just as we do it for the query shape), if they happen to appear under planSummary. This is the un-redacted message that shows that there is nothing sensitive under planSummary in this particular example:
|
| Comments |
| Comment by Githook User [ 29/Aug/18 ] |
|
Author: {'name': 'Kelsey Schubert', 'email': 'kelsey@mongodb.com', 'username': 'Schubes'}Message: (cherry picked from commit f19a83eb8aedfe11dc2ac7ac454f3eb51b5a86cb) |
| Comment by Githook User [ 21/Aug/18 ] |
|
Author: {'name': 'Kelsey Schubert', 'email': 'kelsey@mongodb.com', 'username': 'Schubes'}Message: (cherry picked from commit f19a83eb8aedfe11dc2ac7ac454f3eb51b5a86cb) |
| Comment by Githook User [ 21/Aug/18 ] |
|
Author: {'name': 'Kelsey Schubert', 'email': 'kelsey@mongodb.com', 'username': 'Schubes'}Message: (cherry picked from commit f19a83eb8aedfe11dc2ac7ac454f3eb51b5a86cb) |
| Comment by Githook User [ 18/Aug/18 ] |
|
Author: {'name': 'Kelsey Schubert', 'email': 'kelsey@mongodb.com', 'username': 'Schubes'}Message: |