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

Using regexp patterns for resource scope in user-defined roles

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Security
    • Server Security

      Resource document within Collection-Level Access Control currently supports the following.
      1. Explicit values :

      inventory collection in products database
      
      { db: "products", collection: "inventory" }
      
      

      2. Empty strings that includes the entire scope :

      all collections in products database
      
      { db: "products", collection: "" }
      
      

      Request is to have a pattern matching on either db or collection fileds, this way permissions can be granted based on the matching pattern rather then explicit literals.

      3. regexp example

      Collections starting with "inve" in products database
      
      { db: "products", collection: "^inve*" }
      
      

            Assignee:
            backlog-server-security [DO NOT USE] Backlog - Security Team
            Reporter:
            pavel.duchovny@mongodb.com Pavel Duchovny
            Votes:
            20 Vote for this issue
            Watchers:
            37 Start watching this issue

              Created:
              Updated: