[SERVER-72535] Sharded clusters allow creating the 'admin', 'local', and 'config' databases with alternative casings Created: 05/Jan/23  Updated: 29/Oct/23  Resolved: 13/Jan/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.2.0, 4.4.0, 5.0.0, 6.0.0
Fix Version/s: 4.2.24, 4.4.19, 5.0.15, 6.3.0-rc0, 6.0.5

Type: Bug Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Jordi Serra Torrens
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.2, v6.0, v5.0, v4.4, v4.2
Steps To Reproduce:

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

Sprint: Sharding EMEA 2023-01-23
Participants:
Case:

 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'.



 Comments   
Comment by Githook User [ 20/Jan/23 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-72535 Disallow creating the 'admin', 'local', and 'config' databases with alternative casings on sharded clusters

(cherry picked from commit ab4d1bf2ff349a82c67a09aba9452ed54d673069)
Branch: v4.2
https://github.com/mongodb/mongo/commit/63fa196dd22e3e075ebfc250acf2a0c62b73997a

Comment by Githook User [ 20/Jan/23 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-72535 BACKPORT-14491 Disallow creating the 'admin', 'local', and 'config' databases with alternative casings on sharded clusters
Branch: v4.4
https://github.com/mongodb/mongo/commit/ab4d1bf2ff349a82c67a09aba9452ed54d673069

Comment by Githook User [ 16/Jan/23 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-72535 Disallow creating the 'admin', 'local', and 'config' databases with alternative casings on sharded clusters

(cherry picked from commit 93dba70eb3d2f94e8afb076da9482854b97be397)
Branch: v6.0
https://github.com/mongodb/mongo/commit/203f87300db1fd5f5499418428d3efa0892535d5

Comment by Githook User [ 16/Jan/23 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-72535 Disallow creating the 'admin', 'local', and 'config' databases with alternative casings on sharded clusters

(cherry picked from commit 93dba70eb3d2f94e8afb076da9482854b97be397)
Branch: v5.0
https://github.com/mongodb/mongo/commit/25213a5de37ba8238c2a9d35540afb35e83f7de0

Comment by Githook User [ 13/Jan/23 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-72535 Disallow creating the 'admin', 'local', and 'config' databases with alternative casings on sharded clusters
Branch: master
https://github.com/mongodb/mongo/commit/93dba70eb3d2f94e8afb076da9482854b97be397

Generated at Thu Feb 08 06:22:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.