hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-5787) Table owner can't disable/delete its own table
Date Mon, 23 Apr 2012 11:01:39 GMT

    [ https://issues.apache.org/jira/browse/HBASE-5787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259506#comment-13259506
] 

Hudson commented on HBASE-5787:
-------------------------------

Integrated in HBase-0.92-security #105 (See [https://builds.apache.org/job/HBase-0.92-security/105/])
    HBASE-5787 Table owner can't disable/delete its own table (Matteo) (Revision 1327758)

     Result = FAILURE
tedyu : 
Files : 
* /hbase/branches/0.92/CHANGES.txt
* /hbase/branches/0.92/security/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java
* /hbase/branches/0.92/security/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java

                
> Table owner can't disable/delete its own table
> ----------------------------------------------
>
>                 Key: HBASE-5787
>                 URL: https://issues.apache.org/jira/browse/HBASE-5787
>             Project: HBase
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 0.92.1, 0.94.0, 0.96.0
>            Reporter: Matteo Bertozzi
>            Assignee: Matteo Bertozzi
>            Priority: Minor
>              Labels: acl, security
>             Fix For: 0.92.2, 0.96.0, 0.94.1
>
>         Attachments: HBASE-5787-tests-wrong-names.patch, HBASE-5787-v0.patch, HBASE-5787-v1.patch
>
>
> An user with CREATE privileges can create a table, but can not disable it, because disable
operation require ADMIN privileges. Also if a table is already disabled, anyone can remove
it.
> {code}
> public void preDeleteTable(ObserverContext<MasterCoprocessorEnvironment> c,
>     byte[] tableName) throws IOException {
>   requirePermission(Permission.Action.CREATE);
> }
> public void preDisableTable(ObserverContext<MasterCoprocessorEnvironment> c,
>     byte[] tableName) throws IOException {
>   /* TODO: Allow for users with global CREATE permission and the table owner */
>   requirePermission(Permission.Action.ADMIN);
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message