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

Disallow dropping "admin" and "local" dbs when in replica set mode

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6.0-rc1
    • Usability
    • None
    • Fully Compatible
    • Storage 2017-10-23

    Description

      Currently, there are no system restrictions on when "admin" and "local" can be dropped. Because the usual protections against writing/dropping system collections are skipped (e.g. dropping a "system.users" collection is normally prohibited), it is too easy to break a running system with a simple dropDatabase command.
      One way this can manifest is by dropping the admin database while a "system.version" exists in it, which can downgrade your feature compatibility version.
      To work around this new restriction and drop these databases, one can restart a node in standalone mode.

      Attachments

        Issue Links

          Activity

            People

              maria.vankeulen@mongodb.com Maria van Keulen
              milkie@mongodb.com Eric Milkie
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: