Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6842F18AC9 for ; Wed, 18 Nov 2015 10:17:11 +0000 (UTC) Received: (qmail 80773 invoked by uid 500); 18 Nov 2015 10:17:11 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 80683 invoked by uid 500); 18 Nov 2015 10:17:11 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 80628 invoked by uid 99); 18 Nov 2015 10:17:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Nov 2015 10:17:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0DCE32C1F5E for ; Wed, 18 Nov 2015 10:17:11 +0000 (UTC) Date: Wed, 18 Nov 2015 10:17:11 +0000 (UTC) From: "Robert Levas (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-13865) Add authorizations to permissions so that the definition of a permission (or role) is explicit 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/AMBARI-13865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Levas updated AMBARI-13865: ---------------------------------- Attachment: AMBARI-13865_trunk_01.patch > Add authorizations to permissions so that the definition of a permission (or role) is explicit > ---------------------------------------------------------------------------------------------- > > Key: AMBARI-13865 > URL: https://issues.apache.org/jira/browse/AMBARI-13865 > Project: Ambari > Issue Type: Task > Reporter: Robert Levas > Assignee: Robert Levas > Labels: rbac > Attachments: AMBARI-13865_trunk_01.patch > > > Add authorizations to permissions so that the definition of a permission (or role) is explicit. > A new table needs to be created to store the _authorizations_: > {code} > TABLE roleauthorization ( > authorization_id VARCHAR(100) NOT NULL, > authorization_name VARCHAR(255) NOT NULL, > resource_type_id INTEGER NOT NULL, > PRIMARY KEY(authorization_id) > ) > {code} > A new table needs to be added to map _authorizations_ to _permissions_ > {code} > TABLE permission_roleauthorization ( > permission_id BIGINT NOT NULL, > authorization_id VARCHAR(100) NOT NULL, > PRIMARY KEY(permission_id, authorization_id) > ); > {code} > A new Entity needs to be created to hold the authorization record data ({{org.apache.ambari.server.orm.entities.AuthorizationEntity}}). > The existing PermissionEntity {{org.apache.ambari.server.orm.entities.PermissionEntity}} needs to be updated to include AuthorizationEntities. -- This message was sent by Atlassian JIRA (v6.3.4#6332)