[SERVER-65458] Parse and validate tenantId at the start of command processing Created: 11/Apr/22  Updated: 29/Oct/23  Resolved: 09/Jun/22

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

Type: Task Priority: Major - P3
Reporter: Janna Golden Assignee: Sophia Tan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-65459 Construct NamespaceString using tenan... Closed
is depended on by SERVER-66586 Make UMC commands Tenant capable (Ena... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2022-05-02, Server Serverless 2022-05-16, Server Serverless 2022-05-30, Server Serverless 2022-06-13
Participants:

 Description   

Today, we parse a command request before parsing and validating the tenantId sent in either the security token or $tenant field. We'd like to instead parse and validate the tenantId before parsing the command and set a separate field on the OpMsg itself with the validated tenantId. That way, when parsing the command request, we can use this validated tenantId when constructing the NamespaceString for the command. In order to do this we'll need to:
*Add an optional field 'tenantId' to OpMsg\https://github.com/mongodb/mongo/blob/fd399c5a5d340f029fcd09b8de112f01d71761f0/src/mongo/rpc/op_msg.h#L54. If this is set, it should mean a validated tenantId was sent with the command (either as security token or $tenant)



 Comments   
Comment by Githook User [ 08/Jun/22 ]

Author:

{'name': 'Sophia Tan', 'email': 'sophia_tll@hotmail.com', 'username': 'sophiatll'}

Message: SERVER-65458 Parse and validate tenantId at the start of command processing
Branch: master
https://github.com/mongodb/mongo/commit/0dccb99a06a8de0f72be81fa332e28eafc511b76

Comment by Githook User [ 08/Jun/22 ]

Author:

{'name': 'Sophia Tan', 'email': 'sophia_tll@hotmail.com', 'username': 'sophiatll'}

Message: SERVER-65458 Parse and validate tenantId at the start of command processing
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/c12728c0c01a1d3f2b67d68dd5ee49756357d65e

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