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

Investigate if transitionToCatalogShard should be in localhost exception privileges

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sharding NYC
    • Sharding NYC 2023-04-03

      transitionToCatalogShard is essentially a wrapper for addShard that adds the config server as a shard capable of storing user data. We have a list of "minimum privileges required to bootstrap a system and add the first user" that we allow when the localhost exception is active (ie there are no users and we're connecting from localhost). Notably, this includes addShard, which raises the question of if we should allow transitionToCatalogShard as well. If transitionToCatalogShard can run, then the cluster is far enough along where we should be able to add a user, so this seems unnecessary, but by that same logic, so is addShard, so we should investigate further.

            Assignee:
            wenqin.ye@mongodb.com Wenqin Ye
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: