Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1782

Mask password from being displayed in process list

    XMLWordPrintable

    Details

    • Case:

      Description

      When using any of the mongo command line tools, passing -p secretPassword123 is clearly displayed when viewing in process monitors such as "ps auxww" and "top".

      The "mongo" cli currently masks the password when it is passed using the -p / --password argument. It's probably easier to do this masking in c++, but hopefully you can do the same in Go using something like this ( https://github.com/ErikDubbelboer/gspt )

      If this is a reasonable request, I'd also like the password to be masked if it is passed as a --uri mongodb://user:secretPassword123@127.0.0.1 connection string.

      Just replacing the entire password with xxx or an "x" for each character in the password would work for me.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-tools Backlog - Server Tools Team
              Reporter:
              aqueen Aaron Queen
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: