From dev-return-18861-archive-asf-public=cust-asf.ponee.io@ranger.apache.org Wed Aug 8 11:29:28 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D8045180600 for ; Wed, 8 Aug 2018 11:29:27 +0200 (CEST) Received: (qmail 61450 invoked by uid 500); 8 Aug 2018 09:29:26 -0000 Mailing-List: contact dev-help@ranger.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ranger.apache.org Delivered-To: mailing list dev@ranger.apache.org Received: (qmail 61427 invoked by uid 99); 8 Aug 2018 09:29:26 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2018 09:29:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D8C6DC1A75; Wed, 8 Aug 2018 09:29:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.601 X-Spam-Level: ** X-Spam-Status: No, score=2.601 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_REPLYTO_END_DIGIT=0.25, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, KAM_MANYTO=0.2, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id bjQxE48pwr6T; Wed, 8 Aug 2018 09:29:24 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5FC5A5F385; Wed, 8 Aug 2018 09:29:24 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 00AFCE0110; Wed, 8 Aug 2018 09:29:24 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id C3D08C4013E; Wed, 8 Aug 2018 09:29:23 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============2687488205093013325==" MIME-Version: 1.0 Subject: Review Request 68191: RANGER-2182 : Handle upgrade scenario since atlas-service def is added with new resources for relationship From: bhavik patel To: Gautam Borad , Mehul Parikh , Ramesh Mani , Velmurugan Periasamy , Pradeep Agrawal , Selvamohan Neethiraj , Ankita Sinha , Madhan Neethiraj , Abhay Kulkarni Cc: bhavik patel , ranger Date: Wed, 08 Aug 2018 09:29:23 -0000 Message-ID: <20180808092923.40596.60519@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: bhavik patel X-ReviewGroup: ranger X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/68191/ X-Sender: bhavik patel X-ReviewBoard-Diff-For: security-admin/src/main/java/org/apache/ranger/patch/PatchForAtlasResourceAndAccessTypeUpdate_J10016.java Reply-To: bhavik patel X-ReviewRequest-Repository: ranger --===============2687488205093013325== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68191/ ----------------------------------------------------------- Review request for ranger, Ankita Sinha, Gautam Borad, Abhay Kulkarni, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy. Bugs: RANGER-2182 https://issues.apache.org/jira/browse/RANGER-2182 Repository: ranger Description ------- Handle upgrade scenario in Ranger since atlas-service def is added with new resources for relationship authorization after 1.x release. In addition to handling service-def updates, the upgrade should add a policy that lets all users be able to create all relationships: resources: relationship-type=, end-one-entity-type=, end-one-entity-classification=, end-one-entity=, end-two-entity-type=, end-two-entity-classification=, end-two-entity=* groups: public accessTypes: add-relationship, update-relationship, remove-relationship Diffs ----- agents-common/src/main/resources/service-defs/ranger-servicedef-atlas.json 8838f41 security-admin/db/mysql/optimized/current/ranger_core_db_mysql.sql e82df40 security-admin/db/oracle/optimized/current/ranger_core_db_oracle.sql 9aadbde security-admin/db/postgres/optimized/current/ranger_core_db_postgres.sql 4766910 security-admin/db/sqlanywhere/optimized/current/ranger_core_db_sqlanywhere.sql 82f638d security-admin/db/sqlserver/optimized/current/ranger_core_db_sqlserver.sql 46d92c9 security-admin/src/main/java/org/apache/ranger/patch/PatchForAtlasResourceAndAccessTypeUpdate_J10016.java PRE-CREATION Diff: https://reviews.apache.org/r/68191/diff/1/ Testing ------- 1. After upgrade from 1.x to 2.0 new default policy got created successfully with newly added resources and access types. Thanks, bhavik patel --===============2687488205093013325==--