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

Backup with mongodump protecting the credentials

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Critical - P2
    • Resolution: Incomplete
    • 2.1.1
    • None
    • Security
    • Windows and Linux (64 bits)

    Description

      Security is very important in production deployment, let's see how do we execute a dump in mongoDB

      ./mongodump --host dbh85.test.com --db mydatabase --collection user -u username1 -p ultrasecretpass

      In this case we expose username and password, that's not good.

      we could have 2 problems if some intruder get this credencials:
      *data changes
      *data theft

      Data changes would be cover with read-only users, but I still have the data theft problem.

      mysql has a -defaults-extra-file option which is very useful for theses cases, for instance:

      mysqldump defaults-extra-file=/home/daniel/protectedlogin.cnf -all databases

      where protectedlogin.cnf contains the credentials encrypted.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kcotzen Carlos Astudillo B.
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: