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

Include tenantId in requests sent with DBDirectClient to have user management cmds work

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Server Serverless 2022-09-05, Server Serverless 2022-09-19, Server Serverless 2022-10-03

      Currently the user management commands cannot work with $tenant in multitenancy_test_authzn.js. Commands like createUser et. al. can ONLY be called by highly privileged local users making use of the $tenant field, so passing through to the underlying command only makes sense with a $tenant style request, not with a security token based request.

      The root cause is the tenant id of a command request is not thread down through DBDirectClient. In this ticket, DBDirectClient will be changed to fill $tenant field of OpMsg with tenant id for sending to local service entry point. The $tenant can be used here because the DBDirectClient has internal privileges automatically

       

            Assignee:
            sophia.tan@mongodb.com Sophia Tan
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: