Test $listCatalog can only be accessed with the proper privileges

XMLWordPrintableJSON

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

      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
            Reporter:
            Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: