Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-62239

Put tenantId on opCtx if passed as $tenant

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Server Serverless 2021-12-27, Server Serverless 2022-01-10, Server Serverless 2022-01-24
    • 152

      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.

            Assignee:
            janna.golden@mongodb.com Janna Golden
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: