The $_internalIndexKey aggregation expression is registered via REGISTER_STABLE_EXPRESSION at src/mongo/db/pipeline/expression_sharding.cpp:128, which expands to AllowedWithClientType::kAny, making it accessible to any authenticated client rather than being restricted to internal (intra-cluster) clients via AllowedWithClientType::kInternal.
- related to
-
SERVER-123081 Handle compound wildcard index spec in $_internalIndexKey
-
- Closed
-