orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

Record Level Security: permissions don't follow role's inheritance

Open lvca opened this issue 12 years ago • 7 comments

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."

lvca avatar Jan 20 '14 12:01 lvca

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?

giastfader avatar Jan 20 '14 13:01 giastfader

Take a look at ORole.allow()

lvca avatar Jan 21 '14 12:01 lvca

It would be cool having it for 1.7 with a test case. Can you do that? :-)

lvca avatar Jan 21 '14 12:01 lvca

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 .

giastfader avatar Jan 21 '14 22:01 giastfader

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 .

lvca avatar Jan 21 '14 22:01 lvca

Hi Luca, will this issue be closed in the 1.7? I submitted the #2015 PR some days ago

giastfader avatar Feb 08 '14 12:02 giastfader

Hi guys, So can we close this issue ?

andrii0lomakin avatar Mar 24 '14 11:03 andrii0lomakin