You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Ramachandran Krishnan <ra...@gmail.com> on 2024/09/04 06:13:01 UTC
Adding Groups download as part of Ranger Plugin via Policy Refresher Thread
Hi Team,
One of our use-case(Adding group support) where we added the feature to
download the groupStoreJson along with policy.json and roles.json via the
plugin via Policy Refresher Thread.
*Problem Statement:*if you see PolicyRefresher thread , it will download
roles,policies.
Currently Ranger we do not have options to download RangerUserStoreCache
while invoking the Policy Refresher Thread
It seems bit complex to use the RangerUserStoreCache
> We need to do the below prerequisite before using RangerUserStoreCache
> We need to explicitly set ContextEnricher(RangerUserStoreEnricher) as part
> of serviceDef creation/updation like
> contextEnricherDefObj.setName("userStoreRetrieverClassName");
>
> rangerContextEnricherDefObj.setEnricher("org.apache.ranger.plugin.contextenricher.RangerUserStoreEnricher");
>
> contextEnricherDefObj.setEnricherOptions("userStoreRetrieverClassName=org.apache.ranger.plugin.contextenricher.RangerUserStoreRetriever")
The RangerUserStoreRefresher thread will run as a separate thread .
Can we add the feature to download the groupStoreJson along with
policy.json and roles.json via the plugin via Policy Refresher Thread.
Your input will be appreciated .
Regards,
Ram