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

Invalid role configuration for fsyncunlock command

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.4.25, 7.0.2, 5.0.22, 6.0.11
    • Component/s: None
    • Labels:
      None
    • Cluster Scalability
    • ALL

      [direct: mongos] test> db.getSiblingDB("admin").fsyncUnlock()
      MongoServerError[Unauthorized]: not authorized on admin to execute command { fsyncUnlock: 1, lsid: { id: UUID("015b53df-9147-4bff-80bd-197438e71aaa") }, $clusterTime: { clusterTime: Timestamp(1713328347, 1), signature: { hash: BinData(0, 5D83869EB170A3A0988F51E11062C69D01B2944D), keyId: 7358683174655754254 } }, $db: "admin" }
      

      We encounter the above permission issue when executing with the root role for the fsyncunlock command.

      The fsync unlock cmd has the ActionType::fsyncUnlock, but we do not have a corresponding role in the builtin_roles.cpp (here)

            Assignee:
            nandini.bhartiya@mongodb.com Nandini Bhartiya
            Reporter:
            lamont.nelson@mongodb.com Lamont Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: