Fang-Yu Rao has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/23877


Change subject: IMPALA-10913: [WIP] Produce Ranger audit log for SHOW DATABASES
......................................................................

IMPALA-10913: [WIP] Produce Ranger audit log for SHOW DATABASES

This patch makes Impala produce Ranger audit log for the SHOW DATABASES
statement. Moreover, this patch also enforces the authorization check
for the default database, meaning that the default database will not be
shown if the requesting user is not authorized to view this database
according to the Ranger policy repository.

Testing:
 - Need to add test cases.

Change-Id: Idb3e54b152e953916d3d7d7ef27c880a8559ed26
---
M fe/src/main/java/org/apache/impala/analysis/ShowDbsStmt.java
M fe/src/main/java/org/apache/impala/authorization/Authorizable.java
M fe/src/main/java/org/apache/impala/authorization/AuthorizableFactory.java
A fe/src/main/java/org/apache/impala/authorization/AuthorizableNone.java
M 
fe/src/main/java/org/apache/impala/authorization/DefaultAuthorizableFactory.java
M fe/src/main/java/org/apache/impala/authorization/PrivilegeRequestBuilder.java
M 
fe/src/main/java/org/apache/impala/authorization/ranger/RangerAuthorizationChecker.java
M fe/src/main/java/org/apache/impala/service/Frontend.java
8 files changed, 57 insertions(+), 6 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/77/23877/1
--
To view, visit http://gerrit.cloudera.org:8080/23877
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idb3e54b152e953916d3d7d7ef27c880a8559ed26
Gerrit-Change-Number: 23877
Gerrit-PatchSet: 1
Gerrit-Owner: Fang-Yu Rao <[email protected]>

Reply via email to