[SERVER-81227] Allow internal db in AP request to be parsed without tenant prefix Created: 19/Sep/23 Updated: 29/Sep/23 Resolved: 25/Sep/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Sophia Tan | Assignee: | [DO NOT USE] Backlog - Server Serverless (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | ntdi_must_have | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Assigned Teams: |
Serverless
|
||||||||||||||||||||
| Sprint: | Server Serverless 2023-10-02 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Story Points: | 1 | ||||||||||||||||||||
| Description |
|
The "renameCollection" command runs on "admin" db and has tenant prefix in its "from" collection and "to" collection. To simulate an Atlas Proxy request, we need to add security token and "expectPrefix:true" to its request body. To support such an AP request in mongod, we should also allow the specific global dbs (eg, "$db: admin", "$db:config" and "$db:local") to be parsed without tenant prefix while the command request has security token and "expectPrefix:true". |