Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 39718 invoked from network); 16 Sep 2010 16:05:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Sep 2010 16:05:17 -0000 Received: (qmail 12810 invoked by uid 500); 16 Sep 2010 16:05:17 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 12679 invoked by uid 500); 16 Sep 2010 16:05:16 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 12589 invoked by uid 99); 16 Sep 2010 16:05:15 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Sep 2010 16:05:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Sep 2010 16:04:58 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8GG4aBS025597 for ; Thu, 16 Sep 2010 16:04:36 GMT Message-ID: <533369.231531284653076617.JavaMail.jira@thor> Date: Thu, 16 Sep 2010 12:04:36 -0400 (EDT) From: "Stu Hood (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Updated: (CASSANDRA-1271) Improve permissions to allow control over creation/removal/listing of Keyspaces In-Reply-To: <20214853.335931278973252474.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-1271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stu Hood updated CASSANDRA-1271: -------------------------------- Attachment: (was: 0002-Convert-to-List-Object-resources.patch) > Improve permissions to allow control over creation/removal/listing of Keyspaces > ------------------------------------------------------------------------------- > > Key: CASSANDRA-1271 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1271 > Project: Cassandra > Issue Type: Improvement > Reporter: Stu Hood > Priority: Minor > Fix For: 0.7.0 > > Attachments: 0001-Rather-than-3-ThreadLocals-sure-to-continue-to-expan.patch, 0002-Convert-to-List-Object-resources.patch, 0003-Check-for-permissions-to-modify-the-keyspace-list.patch > > > We'd like to improve resources/permissions so that they can be applied to the global scope, instead of just individual keyspaces. > IAuthority currently only has one concept of a resource that it can authorize for: a keyspace. At the very least, this ticket needs to deal with one additional resource: "the keyspace list". These resources should be mapped into a hierarchy, and an object representing the path to the resource will be passed to IAuthority. > A resource hierarchy to represent all possible resources in Cassandra might look like: {{/cassandra//keyspaces//...}} > In table form: > || resource || checked perms || explanation || > | /cassandra/ | n/a | Separates Cassandra-internal resources from resources that might be provided by plugins. | > | / | n/a | Organizations might have many clusters | > | keyspaces/ | READ, WRITE | The list of keyspaces: READ/WRITE for this resource mean the ability to view/modify the list of keyspaces. | > | / | READ, WRITE, READ_VALUE, WRITE_VALUE | An individual keyspace: READ/WRITE mean the ability to view/modify the list of column families. Since this is the last entry in the current hierarchy, READ/WRITE_VALUE apply recursively to ancestor _data_ of this keyspace. | > Over time Cassandra _may_ add additional authorize calls for resources higher or lower in the chain, which IAuthority backends can choose to ignore, but this initial patch will only make authorize calls for the keyspaces list, and individual keyspaces. As authorize calls are added for child resources like {{/}}, the READ/WRITE_VALUE permissions will move to the lowest checked level, and will be deprecated at higher levels. > (Note that {{/cassandra/}} and {{/}} will not yet be checked for permissions via a call to IAuthority.authorize, so while it would be possible for an IAuthority backend to store permissions for these top level resources, they will only be able to deny access when a user attempts to access an ancestor resource.) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.