Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1682

Password do not get redacted from mongosh_repl_history

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.3
    • Affects Version/s: 2.1.1
    • Component/s: None
    • None
    • Environment:
      OS: ubuntu 20.04
    • Developer Tools
    • 3
    • Not Needed
    • Iteration Xiaosaurus

      When using commands like db.auth and db.createUser password do not get redacted from mongosh_repl_history.

      Attached mongosh logs

      Here the steps to do reproduce it

      mongosh --quiet 
      use admin
      db.auth("root","root")
      

      check the content in the file $HOME/.mongodb/mongosh/mongosh_repl_history

      Attached a screenshot

        1. 659bcb44983e097ede888e81_log
          5 kB
        2. image (7).png
          image (7).png
          54 kB

            Assignee:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Reporter:
            renato.riccio@mongodb.com Renato Riccio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: