Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3EC9310FEB for ; Tue, 19 Nov 2013 06:51:52 +0000 (UTC) Received: (qmail 22793 invoked by uid 500); 19 Nov 2013 06:51:41 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 22628 invoked by uid 500); 19 Nov 2013 06:51:33 -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 22540 invoked by uid 99); 19 Nov 2013 06:51:27 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Nov 2013 06:51:27 +0000 Date: Tue, 19 Nov 2013 06:51:27 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-9973) [ACL]: Users with 'Admin' ACL permission will lose permissions after upgrade to 0.96.x from 0.94.x or 0.92.x MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-9973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13826253#comment-13826253 ] Hudson commented on HBASE-9973: ------------------------------- SUCCESS: Integrated in hbase-0.96-hadoop2 #124 (See [https://builds.apache.org/job/hbase-0.96-hadoop2/124/]) HBASE-9973 Users with 'Admin' ACL permission will lose permissions after upgrade to 0.96.x from 0.94.x or 0.92.x (Himanshu Vashishtha) (mbertozzi: rev 1543178) * /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/migration/NamespaceUpgrade.java > [ACL]: Users with 'Admin' ACL permission will lose permissions after upgrade to 0.96.x from 0.94.x or 0.92.x > ------------------------------------------------------------------------------------------------------------ > > Key: HBASE-9973 > URL: https://issues.apache.org/jira/browse/HBASE-9973 > Project: HBase > Issue Type: Bug > Components: migration, security > Affects Versions: 0.96.0, 0.96.1 > Reporter: Aleksandr Shulman > Assignee: Himanshu Vashishtha > Labels: acl > Fix For: 0.98.0, 0.96.1 > > Attachments: 9973-v2.patch, 9973-v2.patch, 9973.patch > > > In our testing, we have uncovered that the ACL permissions for users with the 'A' credential do not hold after the upgrade to 0.96.x. > This is because in the ACL table, the entry for the admin user is a permission on the '_acl_' table with permission 'A'. However, because of the namespace transition, there is no longer an '_acl_' table. Therefore, that entry in the hbase:acl table is no longer valid. > Example: > {code}hbase(main):002:0> scan 'hbase:acl' > ROW COLUMN+CELL > TestTable column=l:hdfs, timestamp=1384454830701, value=RW > TestTable column=l:root, timestamp=1384455875586, value=RWCA > _acl_ column=l:root, timestamp=1384454767568, value=C > _acl_ column=l:tableAdmin, timestamp=1384454788035, value=A > hbase:acl column=l:root, timestamp=1384455875786, value=C > {code} > In this case, the following entry becomes meaningless: > {code} _acl_ column=l:tableAdmin, timestamp=1384454788035, value=A {code} > As a result, > Proposed fix: > I see the fix being relatively straightforward. As part of the migration, change any entries in the '_acl_' table with key '_acl_' into a new row with key 'hbase:acl', all else being the same. And the old entry would be deleted. > This can go into the standard migration script that we expect users to run. -- This message was sent by Atlassian JIRA (v6.1#6144)