SERVER-137306Backlog
Expose cluster topology to extensions
Search needs to know whether the cluster that mongot serves is sharded. If mongot's syncSource.router setting doesn't match the cluster's actual topology, mongot can silently delete existing search indexes or create duplicate catalog collections in {{__mdb_internal_search}}. For example, this happens when a replica set is converted to a sharded cluster but mongot's config isn't updated accordingly. CLOUDP-404954 adds a catalog access guard that blocks catalog access when the configuration and to