Record Level Security: permissions don't follow role's inheritance
Reported by Claudio in Community Group:
"At this moment in the _allow* fields, OrientDB stores the OIdentity RIDs of both OUser and ORole records that have access to a certain record. My problem is that if I have a Role that inherits by another one, it does not inherit the record permissions too. I don't know if this behaviour is "by design" or if there is the possibility to patch this feature. In this case I found that the problem is in lines 128-135 of the OSecurityShared.java (OrientDB 1.6.3) file that don't check the permissions of the parent roles."
The code should check all the chain of inheritance, going up untill it finds a role that has permission, or if the inheritedRole field is null. This can be very expensive because the hook triggers on every record. Any idea?
Take a look at ORole.allow()
It would be cool having it for 1.7 with a test case. Can you do that? :-)
When do you plan to release it? Il 21/gen/2014 13:33 "Luca Garulli" [email protected] ha scritto:
It would be cool having it for 1.7 with a test case. Can you do that? :-)
— Reply to this email directly or view it on GitHubhttps://github.com/orientechnologies/orientdb/issues/1980#issuecomment-32870093 .
2-3 weeks from today
On 21 January 2014 23:01, giastfader [email protected] wrote:
When do you plan to release it? Il 21/gen/2014 13:33 "Luca Garulli" [email protected] ha scritto:
It would be cool having it for 1.7 with a test case. Can you do that? :-)
— Reply to this email directly or view it on GitHub< https://github.com/orientechnologies/orientdb/issues/1980#issuecomment-32870093>
.
— Reply to this email directly or view it on GitHubhttps://github.com/orientechnologies/orientdb/issues/1980#issuecomment-32968657 .
Hi Luca, will this issue be closed in the 1.7? I submitted the #2015 PR some days ago
Hi guys, So can we close this issue ?