// 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);
- is related to
-
SERVER-70661 Redact literal values in find and agg queries
- Closed