[SERVER-48632] Use wildcard collections in user role privileges Created: 05/Jun/20  Updated: 24/Jun/20  Resolved: 24/Jun/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Steven Chin Assignee: Spencer Jackson
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-22951 Using regexp patterns for resource sc... Backlog
Sprint: Security 2020-06-29
Participants:

 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.



 Comments   
Comment by Spencer Jackson [ 24/Jun/20 ]

Thank you for filing this request! I think that this is very similar to SERVER-22951, so I'm going to close this ticket as a duplicate of the earlier one. This will produce Jira links between the tickets to demonstrate the later activity.

Generated at Thu Feb 08 05:17:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.