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

Parse and validate tenantId at the start of command processing

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Server Serverless 2022-05-02, Server Serverless 2022-05-16, Server Serverless 2022-05-30, Server Serverless 2022-06-13

    Description

      Today, we parse a command request before parsing and validating the tenantId sent in either the security token or $tenant field. We'd like to instead parse and validate the tenantId before parsing the command and set a separate field on the OpMsg itself with the validated tenantId. That way, when parsing the command request, we can use this validated tenantId when constructing the NamespaceString for the command. In order to do this we'll need to:
      *Add an optional field 'tenantId' to OpMsg\https://github.com/mongodb/mongo/blob/fd399c5a5d340f029fcd09b8de112f01d71761f0/src/mongo/rpc/op_msg.h#L54. If this is set, it should mean a validated tenantId was sent with the command (either as security token or $tenant)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: