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

Sharded clusters allow creating the 'admin', 'local', and 'config' databases with alternative casings

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • v6.2, v6.0, v5.0, v4.4, v4.2
    • Hide

      use Admin;
      db.foo.insert({});
       
      db.getSiblingDB("config").databases.find({_id: 'Admin'})
      

      Show
      use Admin; db.foo.insert({});   db.getSiblingDB("config").databases.find({_id: 'Admin'})
    • Sharding EMEA 2023-01-23

    Description

      The 'admin', 'local' and 'config' databases are special databases within the system. Users can not create them. However, it is possible for a user to create them with an alternative casing because these checks on _configsvrCreateDatabase will not match the alternative casings.. This can lead to those databases being incorrectly added to 'config.databases'.

      Attachments

        Activity

          People

            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: