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

Use wildcard collections in user role privileges

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • Security 2020-06-29

    Description

      It would be great to be able to use wildcard collections when creating privileges for user roles, for example:

      db.createRole(
         {
           role: "manageCustomCollections",
           privileges: [
             { resource: { db: "data", collection: "custom.*" }, actions: [ "find", "update", "insert", "remove" ] }
           ],
           ...
         }
      )
      

      This would make it easier for administrators to manage permissions for a set of collections by removing the need to explicitly specify each collection.

      Attachments

        Issue Links

          Activity

            People

              spencer.jackson@mongodb.com Spencer Jackson
              schin Steven Chin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: