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

Resolve inconsistency between usersInfo and rolesInfo

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Server Security

    Description

      The {usersInfo:...} command includes an `_id: 'username.dbname'` field for the document as stored in the local users collection.

      The {rolesInfo:...} command does not since it was originally implemented to pull data from the RoleGraph which did not synthesize this data back in when serializing.

      We should make a decision on whether these two two commands should be consistent and how. Options:

      1. Leave them inconsistent.
      2. Remove `_id` from {usersInfo:...} output as it is redundant.
      3. Add an `_id` field to {rolesInfo:...} to gain consistency without breaking current callers of {usersInfo:...}

      Attachments

        Activity

          People

            backlog-server-security Backlog - Security Team
            sara.golemon@mongodb.com Sara Golemon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: