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 2315418DC8 for ; Sat, 23 Jan 2016 02:51:40 +0000 (UTC) Received: (qmail 41623 invoked by uid 500); 23 Jan 2016 02:51:40 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 41586 invoked by uid 500); 23 Jan 2016 02:51:40 -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 41571 invoked by uid 99); 23 Jan 2016 02:51:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jan 2016 02:51:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CB8032C1F5B for ; Sat, 23 Jan 2016 02:51:39 +0000 (UTC) Date: Sat, 23 Jan 2016 02:51:39 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-15132) Master region merge RPC should authorize user request 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-15132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15113510#comment-15113510 ] Enis Soztutar commented on HBASE-15132: --------------------------------------- Thanks Ted. +1. > Master region merge RPC should authorize user request > ----------------------------------------------------- > > Key: HBASE-15132 > URL: https://issues.apache.org/jira/browse/HBASE-15132 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > Assignee: Ted Yu > Attachments: HBASE-15132-branch-1.v6.patch, HBASE-15132.v1.patch, HBASE-15132.v2.patch, HBASE-15132.v4.patch, HBASE-15132.v5.patch, HBASE-15132.v6.patch, HBASE-15132.v7.patch, HBASE-15132.v8.patch > > > The normal flow for region merge is: > 1. client sends a master RPC for dispatch merge regions > 2. master moves the regions to the same regionserver > 3. master calls mergeRegions RPC on the regionserver. > For user initiated region merge, MasterRpcServices#dispatchMergingRegions() is called by HBaseAdmin. > There is no coprocessor invocation in step 1. > Step 3 is carried out in the "hbase" user context. > This leaves potential security hole - any user without proper authorization can merge regions of any table. > Thanks to Enis who spotted this flaw first. -- This message was sent by Atlassian JIRA (v6.3.4#6332)