ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "peng.jianhua (JIRA)" <j...@apache.org>
Subject [jira] [Created] (RANGER-1762) If need to add Admin(Role) in RangerAuthorizationCoprocessor's preModifyTable() ,preModifyColumn()?
Date Mon, 04 Sep 2017 02:52:02 GMT
peng.jianhua created RANGER-1762:
------------------------------------

             Summary: If need to add Admin(Role) in RangerAuthorizationCoprocessor's  preModifyTable()
,preModifyColumn()?
                 Key: RANGER-1762
                 URL: https://issues.apache.org/jira/browse/RANGER-1762
             Project: Ranger
          Issue Type: Bug
          Components: Ranger
            Reporter: peng.jianhua
            Priority: Minor


1、ranger class : org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor
{code:title=RangerAuthorizationCoprocessor.java|borderStyle=solid}
@Override
	public void preModifyColumn(ObserverContext<MasterCoprocessorEnvironment> c, TableName
tableName, HColumnDescriptor descriptor) throws IOException {
		requirePermission("modifyColumn", tableName.getName(), null, null, Action.CREATE);
	}
	@Override
	public void preModifyTable(ObserverContext<MasterCoprocessorEnvironment> c, TableName
tableName, HTableDescriptor htd) throws IOException {
		requirePermission("modifyTable", tableName.getName(), null, null, Action.CREATE);
	}
{code}

2、hbase class :
{code:title=RangerAuthorizationCoprocessor.java|borderStyle=solid}
 @Override
  public void preModifyTable(ObserverContext<MasterCoprocessorEnvironment> c, TableName
tableName,
      HTableDescriptor htd) throws IOException {
    requirePermission("modifyTable", tableName, null, null, Action.ADMIN, Action.CREATE);
  }
{code}

3、if need to add Action.Admin  in ranger-hbsae plugin?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message