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

Prevent rejection of internal queries via query settings

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • ALL
    • QE 2024-03-04, QE 2024-03-18, QE 2024-04-01

      Currently, admins may reject any query by shape via QuerySettings.

      However, this also currently allows rejection of administrative and internal commands. There is no forseen reason to block such requests, and doing so is only likely to hinder investigation of problem queries.

      As such, at least the following queries should be protected from rejection:

      • $querySettings
      • $planCacheStats
      • $collStats
      • $indexStats
      • $listSampledQueries
      • $listSearchIndexes
      • $listSessions
      • $queryStats
      • $currentOp
      • $listCatalog
      • $listLocalSessions
      • $operationMetrics

      This queries should not respect reject if set.

      Additionally, when a representative query containing any of the above stages is provided to setQuerySettings with reject=true, the request should fail, informing the user that such queries cannot be rejected.

            Assignee:
            james.harrison@mongodb.com James Harrison
            Reporter:
            james.harrison@mongodb.com James Harrison
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: