[SERVER-82335] Stop parsing tenant prefix without atlas proxy protocol in multitenancy Created: 19/Oct/23  Updated: 01/Feb/24

Status: Open
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Sophia Tan Assignee: Dominic Hernandez
Resolution: Unresolved Votes: 0
Labels: ntdi_code_quality, ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
has to be done after SERVER-82337 Make test hooks work with simulate_at... Needs Scheduling
Related
related to SERVER-84223 Complete TODO listed in SERVER-82335 Closed
Assigned Teams:
Service Arch
Participants:
Story Points: 3

 Description   

As  Atlas Proxy would send tenant token with "expectPrefix: true" on every request before we rolled out mongoq, that means we only parse tenant id from database strings when "expectPrefix:true" is set in the unsigned security token. We need to remove support for parsing tenant id from prefix of database strings without "expectPrefix: true".

For example, if we receive a request {count: ..., $db: tenantA_myDb} without security token, we should return error instead of counting documents of the tenant db with DatabaseName(tenantA, myDb).


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