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

Ensure only users with allowed permissions may invoke query settings commands

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • QE 2023-07-24, QE 2023-08-07, QE 2023-08-21

      We need to ensure that only users with the allowed permissions are able to invoke the query settings commands and agg stage.

      One way of doing it is through modification of the idl definition.

       

      What we need to is:

      • introduce a new action_type query_settings in action_type.idl file
      • perform the authorisation check for commands
      • for agg stage the privilege has to be defined in aggregate_command.idl as follows
      ...
      - privilege: # $querySettings
        resource_pattern: cluster
        action_type: query_settings

       

      • adjust the privilege vector definition for the $querySettings agg stage
      • extend the existing permission tests to ensure that authorization is performed accordingly in commands_lib.js

            Assignee:
            victor.ghita@mongodb.com Victor Ghita (Inactive)
            Reporter:
            denis.grebennicov@mongodb.com Denis Grebennicov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: