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

-p should prompt for password

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Accepted
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongorestore
    • Labels:
      None
    • Environment:
      Mac OS 10.14.6

      Description

      Currently the syntax to restore a database is

      ```

      mongorestore -h <someHost> -d <someDatabase> -u <someUser> -p <somePassword> <someDirectory>

      ```

      This exposes the password in the history. I suggest the syntax change to

      ```

      mongorestore -h <someHost> -d <someDatabase> -u <someUser> <someDirectory> -p

      ```

      so that the user is prompted to enter the password after this command is executed.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            soldi.day@gmail.com Matthew Day
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: