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

Inconsistent arguments in grant/revoke roles/privileges to/from role

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.5.4
    • Security
    • Minor Change
    • ALL

    Description

      grantRolesToRole takes a grantedRoles argument, thusly:

      { grantRolesToRole: "productsReaderWriter",
        grantedRoles: [
          { role: "productsReader", db: "products"}
        ],
        writeConcern: { w: "majority" , wtimeout: 5000 }
      }

      But for 'grantPrivilegesToRole, the argument is not 'grantedPrivileges', but simply 'privileges'.

      { grantPrivilegesToRole: "<role>",
        privileges: [
          { resource: { <resource> }, actions: [ "<action>", ... ] },
          ...
        ],
        writeConcern: <write concern document>
      }

      Similarly, revokeRolesFromRole has 'revokedRoles', but revokePrivelegesFromRole has just 'privileges'

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            bard.bloom@10gen.com bard.bloom@10gen.com
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: