[
https://issues.apache.org/jira/browse/SENTRY-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
guoquanshen updated SENTRY-405:
-------------------------------
Description:
Currently the sentryStore in Sentry only supports database structure authorize
model such as Hive/Impala, in order to support more components like Solr or
other no database authorization
model component. It needs to create a general store to communicate with
outside, the structure of privilege model should be hidden. The general store
uses interface to transfer the needed information of privilege, the example
codes are as following:
{code}
public interface PrivilegeReader {
public List<? extends Authorizable> getAuthorizables();
public String getAction();
public String getComponent();
public String getService();
public String getScope();
public Boolean withGrantOption();
}
public interface Authorizable {
public String getName();
public String getTypeName();
}
{code}
was:
Currently the sentryStore in Sentry only supports database structure authorize
model such as Hive/Impala, in order to support more components like Solr or
other no database authorization
model component. It needs to create a general store to communicate with
outside, the structure of privilege model should be hidden. The general store
uses interface to transfer the needed information of privilege, the example
codes are as following:
{code}
public interface PrivilegeReader {
public List<? extends Authorizable> getAuthorizables();
public String getAction();
public String getComponent();
public String getService();
public String getScope();
public Boolean withGrantOption();
}
{code}
> Adding a general jdo access layer(sentrystore) to support the new
> authorization model
> --------------------------------------------------------------------------------------
>
> Key: SENTRY-405
> URL: https://issues.apache.org/jira/browse/SENTRY-405
> Project: Sentry
> Issue Type: Sub-task
> Reporter: guoquanshen
> Assignee: guoquanshen
>
> Currently the sentryStore in Sentry only supports database structure
> authorize model such as Hive/Impala, in order to support more components like
> Solr or other no database authorization
> model component. It needs to create a general store to communicate with
> outside, the structure of privilege model should be hidden. The general store
> uses interface to transfer the needed information of privilege, the example
> codes are as following:
> {code}
> public interface PrivilegeReader {
> public List<? extends Authorizable> getAuthorizables();
> public String getAction();
> public String getComponent();
> public String getService();
> public String getScope();
> public Boolean withGrantOption();
> }
> public interface Authorizable {
> public String getName();
> public String getTypeName();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)