[SERVER-11331] auth error with createRole command Created: 23/Oct/13 Updated: 11/Jul/16 Resolved: 23/Oct/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Security |
| Affects Version/s: | 2.5.3 |
| Fix Version/s: | 2.5.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Samantha Ritter (Inactive) | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | 26qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
mac |
||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Participants: | |||||
| Description |
|
createRole (for empty user-defined roles) can be run by any user, and can also be run when not logged in at all. > db.runCommand( { createRole: "sam", privileges: [], roles: [] }) { "ok" : 1 }When the role we are trying to create contains any linked roles or privileges, the command fails with an auth error: > db.runCommand( { createRole: "dave", privileges: [], roles: [ "sam" ] }) ", > db.runCommand( { createRole: "amalia", privileges: [], roles: [ "read" ] }) ", > var priv = { resource: { db: "test", collection: "" }, actions: [ "find" ] } ) , actions: [ \"find\" ] } ], roles: [] }", |
| Comments |
| Comment by auto [ 23/Oct/13 ] |
|
Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}Message: |