[ 
https://issues.apache.org/jira/browse/OAK-7937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16711273#comment-16711273
 ] 

angela commented on OAK-7937:
-----------------------------

[~stillalex], i commented on the feature branch.
what i meant regarding everyone was the following:
it is part of the design that every effective cug policy affects almost every 
single principal (exceptions are defined by the CugExclude): principals listed 
in the policy will be granted read, while all others (except for those in 
cugexclude) will be denied read access. that's what i meant with the _everyone_ 
group.
the question was: do we really want to treat the deny-for-everyone the same way 
and thus return all CUG-policies defined in the repository because they 
effectively prevent the set of principals to read at those locations? and i am 
not sure this is really sensible if there were thousands of cugs present... so 
we might remember ourselves that the method is only guaranteed to be besteffort 
and thus ignore the everyone-case.

but since i already mention the cug-exclude: if any principal is of the passed 
set is excluded we should probably also shortcut and return an empty array.

> Implement CugAccessControlManager.getEffectivePolicies(Set<Principal> 
> principals)
> ---------------------------------------------------------------------------------
>
>                 Key: OAK-7937
>                 URL: https://issues.apache.org/jira/browse/OAK-7937
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>            Reporter: angela
>            Assignee: Alex Deparvu
>            Priority: Major
>             Fix For: 1.10
>
>
> today CugAccessControlManager.getEffectivePolicies(Set<Principal> principals) 
> returns an empty array and has a comment stating that this is not implemented.
> having thought this through again, i think there was some benefit in having 
> the implementation. as long as the given set of principal does NOT include 
> everyone the return value should just include the CUG-policies that 
> explicitly list any of principals. IF _everyone_  was part of the set, the 
> return-value basically includes _all_ CUG-policies, because every CUG will 
> deny read-access for everyone except for the principals explicitly listed in 
> the CUG-policy... if we do the latter as lazy as possible it might still be 
> doable even in a scenario, when there are tons of CUG-policies specified.
> [~stillalex], wdyt? do you want to take care of this?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to