[SERVER-24521] Implement redact methods for log redaction Created: 10/Jun/16  Updated: 25/Oct/22  Resolved: 08/Jul/16

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: None
Fix Version/s: 3.3.10

Type: New Feature Priority: Major - P3
Reporter: Andreas Nilsson Assignee: Andreas Nilsson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-70661 Redact literal values in find and agg... Closed
Backwards Compatibility: Fully Compatible
Sprint: Security 16 (06/24/16), Security 17 (07/15/16)
Participants:

 Description   

// Replace all values with ‘###’ and keep keys intact.
std::string redact(const BSONObj& objectToRedact);

// Replace the entire string with '###'
std::string redact(const std::string& stringToRedact);

// Keep status code and replace reason with '###'
std::string redact(const Status& statusToRedact);

// Keep exception type and replace causedBy with '###'
std::string redact(const DBException& exceptionToRedact);



 Comments   
Comment by Githook User [ 08/Jul/16 ]

Author:

{u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@mongodb.com'}

Message: SERVER-24521 Log redaction 'redact' functions
Branch: master
https://github.com/mongodb/mongo/commit/40002946c16bf293491fdb643e688a39d0c62781

Comment by Githook User [ 08/Jul/16 ]

Author:

{u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@mongodb.com'}

Message: Revert "SERVER-24521 Log redaction 'redact' functions"

This reverts commit 396f6d57d51c7367e26a71ac35b95ae927cc0e3b.
Branch: master
https://github.com/mongodb/mongo/commit/79a6ca14abdf9b3f86040f70210122007276e33b

Comment by Githook User [ 07/Jul/16 ]

Author:

{u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@mongodb.com'}

Message: SERVER-24521 Log redaction 'redact' functions
Branch: master
https://github.com/mongodb/mongo/commit/396f6d57d51c7367e26a71ac35b95ae927cc0e3b

Generated at Thu Feb 08 04:06:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.