[
https://issues.apache.org/jira/browse/OAK-7937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16745865#comment-16745865
]
Alex Deparvu commented on OAK-7937:
-----------------------------------
bq. comment directly on github.
I would prefer to keep the discussion here, like a single source of truth.
bq. regarding risking re-index: agree that we should not create the index on
existing installations. would be an option to create the index if the module is
freshly installed (i.e. when the node types are being installed) but omit index
creation if the node type is already there?
I would not mess with index definitions out of fear or wrongly triggering a
full reindex of the node type index. could we simply document the need to add
this node type to the index?
bq. an alternative approach to the traversal-ok flag (in case the index is
missing or if we go without index altogether) might be to use the hidden
structure to hop to nodes with cugs only instead of traversing everything...
basically a manual search... wdyt?
I don't follow, could you add more details to this option?
> 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.12
>
>
> 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)