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

Remove check for term field in cluster find

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Cluster Scalability
    • Cluster Scalability 2024-4-1, Cluster Scalability 2024-4-15, Cluster Scalability 2024-4-29, Cluster Scalability 2024-5-13, Cluster Scalability 2024-5-27, Cluster Scalability 2024-6-10, Cluster Scalability 06/24/24, Cluster Scalability 2024-07-08, Cluster Scalability 2024-07-22, Cluster Scalability 2024-08-19

      Currently when checking auth, cluster find will scan the find request looking for the "term" field because hasTerm is a parameter to the find authorization logic cluster find and regular find share. Term is an internal option used within replication, so no cluster find should ever include it. We could avoid this check by either parsing the cluster find earlier so we can consult a pre-parsed IDL type instead of scanning the raw BSON, or by disallowing the term field in cluster find and assuming hasTerm is always false.

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: