[SERVER-70740] Handle expectPrefix option in requests Created: 20/Oct/22  Updated: 29/Oct/23  Resolved: 04/Apr/23

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

Type: Task Priority: Major - P3
Reporter: Sophia Tan Assignee: Hugh Tong (Inactive)
Resolution: Fixed Votes: 0
Labels: ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-70545 Create passthroughs that inject a sec... Closed
is depended on by SERVER-70547 Create multitenancySupport passthroug... Closed
is depended on by SERVER-74284 Fix existing tests for command serial... Closed
is depended on by SERVER-76084 Create targeted tests for command de/... Closed
Related
related to SERVER-75828 Complete TODO listed in SERVER-70740 Closed
Assigned Teams:
Serverless
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-02-06, Server Serverless 2023-02-20, Server Serverless 2023-03-06, Server Serverless 2023-03-20, Server Serverless 2023-04-17
Participants:
Story Points: 5

 Description   

Atlas Proxy will continue to prefix requests even once it starts sending $tenant - it will indicate in the request that it sent both a prefix and $tenant by setting a new flag "expectPrefix" to true in the request. If expectPrefix is true, we must pull the prefix off of the db name/nss during command request parsing and check that it matches the tenantId in the security token. This ticket should make it such that mongod can parse a request with a prefix and $tenant (or security token) correctly.

Implementation of the serializers and derserializers are scoped in SERVER-73108, which must be completed before targeted testing for this ticket can be written as part of SERVER-74284.



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

Author:

{'name': 'Hugh Tong', 'email': 'hugh.tong@mongodb.com', 'username': 'cortrain'}

Message: SERVER-75828 Complete TODO listed in SERVER-70740
Branch: master
https://github.com/mongodb/mongo/commit/af13a03edf9eab649ecf87e0093b326a30f9b2c1

Comment by Githook User [ 04/Apr/23 ]

Author:

{'name': 'Hugh Tong', 'email': 'hugh.tong@mongodb.com', 'username': 'cortrain'}

Message: SERVER-70740 Handle expectPrefix option in requests
Branch: master
https://github.com/mongodb/mongo/commit/dca69459e45df2c6e811ffdc2fcf635f467fd519

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