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

Test $listCatalog can only be accessed with the proper privileges

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2024-12-23, CAR Team 2025-01-06

      This needs to be tested, ideally, under the jstests/auth directory.

      The logic is:

      • When the aggregate stage is run against the 'admin' database, the user will need to have the new privilege called `listClusterCatalog`, which is included in the clusterMonitor built-in role.
      • When the aggregate stage runs against a database other than 'admin', the user will need to own the `listCollections` action privilege for that database, which is included in the read built-in role.

            Assignee:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: