[SERVER-62239] Put tenantId on opCtx if passed as $tenant Created: 22/Dec/21 Updated: 29/Oct/23 Resolved: 18/Jan/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.3.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Janna Golden | Assignee: | Janna Golden |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Sprint: | Server Serverless 2021-12-27, Server Serverless 2022-01-10, Server Serverless 2022-01-24 | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 152 | ||||||||||||
| Description |
|
Currently the tenantId is included in the authenticatedUser object on the opCtx if it was provided as a part of the security token over the wire. This ticket is to create new object on the opCtx (different from the authenticatedUser object) that can store the tenantId in the event that it is passed some way other than the security token. This ticket should also set this new object when a tenantId is received in the $tenant field. Future work will need to be done to set this object when the tenantId is passed as a prefix or if some background thread is doing work on behalf of a tenant. |
| Comments |
| Comment by Githook User [ 18/Jan/22 ] |
|
Author: {'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}Message: |
| Comment by Githook User [ 18/Jan/22 ] |
|
Author: {'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}Message: |
| Comment by Janna Golden [ 18/Jan/22 ] |
|
Code review for test fix: |
| Comment by Githook User [ 16/Jan/22 ] |
|
Author: {'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}Message: Revert " This reverts commit da6685f2648051ce806ad700d31787a1f365cfdc. |
| Comment by Githook User [ 16/Jan/22 ] |
|
Author: {'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}Message: Revert " This reverts commit 7b998aa933ea2ab8730198a6c3a95cfc2d5f2d41. |
| Comment by Githook User [ 14/Jan/22 ] |
|
Author: {'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}Message: |
| Comment by Githook User [ 14/Jan/22 ] |
|
Author: {'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}Message: |