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

listDatabases with unsigned security token with expectPrefix:true returns global databases along side tenant databases.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Service Arch
    • Fully Compatible
    • ALL
    • Hide

      buildscripts/resmoke.py run multitenancy_with_atlas_proxy_basic_commands.js

      Show
      buildscripts/resmoke.py run multitenancy_with_atlas_proxy_basic_commands.js
    • Service Arch 2023-12-25, Service Arch 2024-01-08, Service Arch 2024-01-22
    • 35

      If listDatabase is called on a connection with an unsigned security token where expectPrefix:true, it will return the tenants databases, along with all of the global databases. 

      If we set expectPrefix:false, we get the expected outcome of only listing the tenants databases. So this bug occurs only when expectPrefix is set to true in the security token.

      When calling listDatabase with expectPrefix set to true or false, it should only return tenant databases if a unsigned security token is set. global databases should not be returned when a tenantId is present in security token.

            Assignee:
            dominic.hernandez@mongodb.com Dominic Hernandez
            Reporter:
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: