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

Handle expectPrefix option in requests

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • Serverless
    • Fully Compatible
    • Server Serverless 2023-02-06, Server Serverless 2023-02-20, Server Serverless 2023-03-06, Server Serverless 2023-03-20, Server Serverless 2023-04-17
    • 5

    Description

      Atlas Proxy will continue to prefix requests even once it starts sending $tenant - it will indicate in the request that it sent both a prefix and $tenant by setting a new flag "expectPrefix" to true in the request. If expectPrefix is true, we must pull the prefix off of the db name/nss during command request parsing and check that it matches the tenantId in the security token. This ticket should make it such that mongod can parse a request with a prefix and $tenant (or security token) correctly.

      Implementation of the serializers and derserializers are scoped in SERVER-73108, which must be completed before targeted testing for this ticket can be written as part of SERVER-74284.

      Attachments

        Activity

          People

            hugh.tong@mongodb.com Hugh Tong (Inactive)
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: