Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DC446200AC5 for ; Sun, 22 May 2016 07:53:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CFF68160A26; Sun, 22 May 2016 05:53:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F1B47160A1E for ; Sun, 22 May 2016 07:53:15 +0200 (CEST) Received: (qmail 62319 invoked by uid 500); 22 May 2016 05:53:15 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 62305 invoked by uid 99); 22 May 2016 05:53:15 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 May 2016 05:53:15 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5B4332C1F58 for ; Sun, 22 May 2016 05:53:14 +0000 (UTC) Date: Sun, 22 May 2016 05:53:14 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-14818) user_permission does not list namespace permissions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 22 May 2016 05:53:17 -0000 [ https://issues.apache.org/jira/browse/HBASE-14818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15295415#comment-15295415 ] Hudson commented on HBASE-14818: -------------------------------- FAILURE: Integrated in HBase-1.4 #170 (See [https://builds.apache.org/job/HBase-1.4/170/]) HBASE-14818 user_permission does not list namespace permissions (li (jerryjch: rev b7de6635805ba3f3a4e063bdd85a9bd247223864) * hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java * hbase-shell/src/main/ruby/shell/commands/user_permission.rb * hbase-shell/src/main/ruby/hbase/security.rb * hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/AccessControlClient.java > user_permission does not list namespace permissions > --------------------------------------------------- > > Key: HBASE-14818 > URL: https://issues.apache.org/jira/browse/HBASE-14818 > Project: HBase > Issue Type: Bug > Components: hbase > Affects Versions: 1.2.0 > Reporter: Steven Hancz > Assignee: li xiang > Priority: Minor > Fix For: 2.0.0, 1.3.0, 1.4.0, 1.2.2 > > Attachments: HBASE-14818-1.2-v4.patch, HBASE-14818-master-v3.patch, HBASE-14818-master-v4.patch, HBASE-14818-v0.patch, HBASE-14818-v1.patch, HBASE-14818-v2.patch > > > The user_permission command does not list namespace permissions: > For example: if I create a new namespace or use an existing namespace and grant a user privileges to that namespace, the command user_permission does not list it. The permission is visible in the acl table. > Example: > hbase(main):005:0> create_namespace 'ns3' > 0 row(s) in 0.1640 seconds > hbase(main):007:0> grant 'test_user','RWXAC','@ns3' > 0 row(s) in 0.5680 seconds > hbase(main):008:0> user_permission '.*' > User Namespace,Table,Family,Qualifier:Permission > sh82993 finance,finance:emp,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN] > @hbaseglobaldba hbase,hbase:acl,,: [Permission: actions=EXEC,CREATE,ADMIN] > @hbaseglobaloper hbase,hbase:acl,,: [Permission: actions=EXEC,ADMIN] > hdfs hbase,hbase:acl,,: [Permission: actions=READ,WRITE,CREATE,ADMIN,EXEC] > sh82993 ns1,ns1:tbl1,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN] > ns1admin ns1,ns1:tbl2,,: [Permission: actions=EXEC,CREATE,ADMIN] > @hbaseappltest_ns1funct ns1,ns1:tbl2,,: [Permission: actions=READ,WRITE,EXEC] > ns1funct ns1,ns1:tbl2,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN] > hbase ns2,ns2:tbl1,,: [Permission: actions=READ,WRITE,EXEC,CREATE,ADMIN] > 9 row(s) in 1.8090 seconds > As you can see user test_user does not appear in the output, but we can see the permission in the ACL table. > hbase(main):001:0> scan 'hbase:acl' > ROW COLUMN+CELL > @finance column=l:sh82993, timestamp=1444405519510, value=RWXCA > @gcbcppdn column=l:hdfs, timestamp=1446141119602, value=RWCXA > @hbase column=l:hdfs, timestamp=1446141485136, value=RWCAX > @ns1 column=l:@hbaseappltest_ns1admin, timestamp=1447437007467, value=RWXCA > @ns1 column=l:@hbaseappltest_ns1funct, timestamp=1447427366835, value=RWX > @ns2 column=l:@hbaseappltest_ns2admin, timestamp=1446674470456, value=XCA > @ns2 column=l:test_user, timestamp=1447692840030, value=RWAC > @ns3 column=l:test_user, timestamp=1447692860434, value=RWXAC > finance:emp column=l:sh82993, timestamp=1444407723316, value=RWXCA > hbase:acl column=l:@hbaseglobaldba, timestamp=1446590375370, value=XCA > hbase:acl column=l:@hbaseglobaloper, timestamp=1446590387965, value=XA > hbase:acl column=l:hdfs, timestamp=1446141737213, value=RWCAX > ns1:tbl1 column=l:sh82993, timestamp=1446674153058, value=RWXCA > ns1:tbl2 column=l:@hbaseappltest_ns1funct, timestamp=1447183824580, value=RWX > ns1:tbl2 column=l:ns1admin, timestamp=1447183766370, value=XCA > ns1:tbl2 column=l:ns1funct, timestamp=1447184077545, value=RWXCA > ns2:tbl1 column=l:hbase, timestamp=1447182228314, value=RWXCA > 11 row(s) in 0.4990 seconds > It would be nice to be able to see namespace permissions via the user_permission '.*' command as scanning the acl table is not the recommended way to view object permissions. Especially if one is looking to access base via a shell and collect ACL information. > Steven -- This message was sent by Atlassian JIRA (v6.3.4#6332)