[SERVER-76294] Remove DatabaseName::createDatabaseNameForAuth Created: 19/Apr/23  Updated: 29/Oct/23  Resolved: 02/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Mathis Bessa Assignee: Gabriel Marks
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-74493 Make DatabaseName constructors private Closed
related to SERVER-74896 Remove NamespaceString::createNamespa... Closed
Assigned Teams:
Server Security
Backwards Compatibility: Fully Compatible
Sprint: Security 2023-07-24, Security 2023-08-07
Participants:

 Description   

Once the ResourcePattern and ParsedPrivilege APIs handle tenantIds, change any remaining call sites to DatabaseName::createDatabaseNameForAuth to call the appropriate method on DatabaseNameUtil to construct DatabaseName instead. Then, remove DatabaseName::createDatabaseNameForAuth, as it skips validation that tenantIds exist when they should.



 Comments   
Comment by Githook User [ 03/Aug/23 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-76294 Remove createDatabaseNameForAuth and DatabaseNameUtil::serializeForAuth
Branch: minh.luu-no_compile_sys-perf
https://github.com/mongodb/mongo/commit/df6b41572132d59780a1ac499c9ed75e20a9ec18

Comment by Githook User [ 02/Aug/23 ]

Author:

{'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}

Message: SERVER-76294 Remove createDatabaseNameForAuth and DatabaseNameUtil::serializeForAuth
Branch: master
https://github.com/mongodb/mongo/commit/df6b41572132d59780a1ac499c9ed75e20a9ec18

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