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

Mask password from being displayed in process list

    XMLWordPrintable

    Details

      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:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: