Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24521

Implement redact methods for log redaction

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.10
    • Affects Version/s: None
    • Component/s: Security
    • None
    • Fully Compatible
    • Security 16 (06/24/16), Security 17 (07/15/16)

      // 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);

            Assignee:
            andreas.nilsson Andreas Nilsson
            Reporter:
            andreas.nilsson Andreas Nilsson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: