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

Stop parsing tenant prefix without atlas proxy protocol in multitenancy

    • Service Arch
    • Fully Compatible
    • Service Arch 2024-03-18
    • 3

      As  Atlas Proxy would send tenant token with "expectPrefix: true" on every request before we rolled out mongoq, that means we only parse tenant id from database strings when "expectPrefix:true" is set in the unsigned security token. We need to remove support for parsing tenant id from prefix of database strings without "expectPrefix: true".

      For example, if we receive a request {count: ..., $db: tenantA_myDb} without security token, we should return error instead of counting documents of the tenant db with DatabaseName(tenantA, myDb).

            Assignee:
            didier.nadeau@mongodb.com Didier Nadeau
            Reporter:
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: