You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Alok Lal (JIRA)" <ji...@apache.org> on 2015/08/20 18:59:46 UTC
[jira] [Comment Edited] (RANGER-620) Ability to use database when
connecting to it via HiveServer2 without policy authorizing it
[ https://issues.apache.org/jira/browse/RANGER-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14705275#comment-14705275 ]
Alok Lal edited comment on RANGER-620 at 8/20/15 4:59 PM:
----------------------------------------------------------
Yes. This was fixed via https://issues.apache.org/jira/browse/RANGER-550. It isn't in 0.4 as it requires support from Hive to consult Ranger before returning metadata information. Description of this JIRA could have been better -- my bad. I have added a note in comments so others can locate it easily.
was (Author: aloklal99):
Yes. This was fixed via https://issues.apache.org/jira/browse/RANGER-550. It isn't in 0.4 as it requires support from Hive to consult Ranger before returning metadata information.
> Ability to use database when connecting to it via HiveServer2 without policy authorizing it
> -------------------------------------------------------------------------------------------
>
> Key: RANGER-620
> URL: https://issues.apache.org/jira/browse/RANGER-620
> Project: Ranger
> Issue Type: Bug
> Components: admin
> Affects Versions: 0.4.0
> Environment: HiveServer2 on Ambari with Ranger plugin enabled
> Reporter: Loïc C. Chanel
> Priority: Critical
> Labels: hiveserver, security
>
> When doing with beeline
> !connect jdbc:hive2://192.168.6.210:10000/db1;principal=hive/hivehost@REALM org.apache.hive.jdbc.HiveDriver
> I can connect to db1, and even make a show tables without having any authorizing policy for these actions.
> And I am sure I have no right to connect and see these tables, because when doing
> !connect jdbc:hive2://192.168.6.210:10000/;principal=hive/hivehost@REALM org.apache.hive.jdbc.HiveDriver
> I can't make a use db1 without the error :
> Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [testuser] does not have [USE] privilege on [db1] (state=42000,code=40000)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)