You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by bhavik patel <bh...@gmail.com> on 2018/08/08 09:29:23 UTC

Review Request 68191: RANGER-2182 : Handle upgrade scenario since atlas-service def is added with new resources for relationship

-----------------------------------------------------------
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


Re: Review Request 68191: RANGER-2182 : Handle upgrade scenario since atlas-service def is added with new resources for relationship

Posted by Velmurugan Periasamy <vp...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68191/#review206987
-----------------------------------------------------------


Ship it!




Ship It!

- Velmurugan Periasamy


On Aug. 8, 2018, 12:03 p.m., bhavik patel wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68191/
> -----------------------------------------------------------
> 
> (Updated Aug. 8, 2018, 12:03 p.m.)
> 
> 
> 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/2/
> 
> 
> 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
> 
>


Re: Review Request 68191: RANGER-2182 : Handle upgrade scenario since atlas-service def is added with new resources for relationship

Posted by Mehul Parikh <me...@freestoneinfotech.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68191/#review207014
-----------------------------------------------------------


Ship it!




Ship It!

- Mehul Parikh


On Aug. 8, 2018, 12:03 p.m., bhavik patel wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68191/
> -----------------------------------------------------------
> 
> (Updated Aug. 8, 2018, 12:03 p.m.)
> 
> 
> 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/2/
> 
> 
> 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
> 
>


Re: Review Request 68191: RANGER-2182 : Handle upgrade scenario since atlas-service def is added with new resources for relationship

Posted by bhavik patel <bh...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68191/
-----------------------------------------------------------

(Updated Aug. 8, 2018, 12:03 p.m.)


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 (updated)
-----

  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/2/

Changes: https://reviews.apache.org/r/68191/diff/1-2/


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