Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11059

Document forceUUID action

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None
    • 0.5

      There is a new privilege type forceUUID

      This privilege is referenced in DOCS-11024 but we do not have documentation for it yet.

      spencer.jackson provided info on the privilege via Slack

      From the conversation:

      If you could run applyOps, with a 'create' op, you could force a collection to come into being with a user specified UUID. But that's just how replication has to work, primaries must be able to create collections like that on secondaries.

      Now, we also need a new privilege, for calling `create` with a user specified UUID. We could have just required Internal privileges, like those provided by __system, but it turns out you need this power to be attached to the `restore` role. When you do sharded restores, each shard needs to have the same UUID for the same collection. So, that's a new behavior, that you couldn't do before, that needs to be granularly handed out, that needs its own actiontype. That's what `forceUUID` is for.

            Assignee:
            jeffrey.allen@mongodb.com Jeffrey Allen
            Reporter:
            jeffrey.allen@mongodb.com Jeffrey Allen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              6 years, 21 weeks, 6 days ago