-
Type: Task
-
Resolution: Unresolved
-
Priority: 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.