Re: Review Request 68269: RANGER-2184 : Update RangerAtlas authorization to authorize add/update/remove of relationships

2018-08-10 Thread Gautam Borad

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68269/#review207070
---


Ship it!




Ship It!

- Gautam Borad


On Aug. 8, 2018, 4:47 p.m., Nixon Rodrigues wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68269/
> ---
> 
> (Updated Aug. 8, 2018, 4:47 p.m.)
> 
> 
> Review request for ranger, Madhan Neethiraj, Mehul Parikh, and Velmurugan 
> Periasamy.
> 
> 
> Bugs: RANGER-2184
> https://issues.apache.org/jira/browse/RANGER-2184
> 
> 
> Repository: ranger
> 
> 
> Description
> ---
> 
> This patch includes update to RangerAtlas authorization to provide 
> authorization for Relationship with 
> 
> Actions : add-relationship, update-relationship, remove-relationship
> 
> 
> Diffs
> -
> 
>   
> plugin-atlas/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
>  aa815b266 
>   
> plugin-atlas/src/main/java/org/apache/ranger/services/atlas/RangerServiceAtlas.java
>  0ee262796 
>   
> ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
>  609dddb24 
> 
> 
> Diff: https://reviews.apache.org/r/68269/diff/2/
> 
> 
> Testing
> ---
> 
> Tested authorization with policies on end1 & end2 of entity-type and 
> classification.
> 
> 
> Thanks,
> 
> Nixon Rodrigues
> 
>



Re: Review Request 68269: RANGER-2184 : Update RangerAtlas authorization to authorize add/update/remove of relationships

2018-08-09 Thread Mehul Parikh

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68269/#review207020
---


Ship it!




Ship It!

- Mehul Parikh


On Aug. 8, 2018, 4:47 p.m., Nixon Rodrigues wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68269/
> ---
> 
> (Updated Aug. 8, 2018, 4:47 p.m.)
> 
> 
> Review request for ranger, Madhan Neethiraj, Mehul Parikh, and Velmurugan 
> Periasamy.
> 
> 
> Bugs: RANGER-2184
> https://issues.apache.org/jira/browse/RANGER-2184
> 
> 
> Repository: ranger
> 
> 
> Description
> ---
> 
> This patch includes update to RangerAtlas authorization to provide 
> authorization for Relationship with 
> 
> Actions : add-relationship, update-relationship, remove-relationship
> 
> 
> Diffs
> -
> 
>   
> plugin-atlas/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
>  aa815b266 
>   
> plugin-atlas/src/main/java/org/apache/ranger/services/atlas/RangerServiceAtlas.java
>  0ee262796 
>   
> ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
>  609dddb24 
> 
> 
> Diff: https://reviews.apache.org/r/68269/diff/2/
> 
> 
> Testing
> ---
> 
> Tested authorization with policies on end1 & end2 of entity-type and 
> classification.
> 
> 
> Thanks,
> 
> Nixon Rodrigues
> 
>



Re: Review Request 68269: RANGER-2184 : Update RangerAtlas authorization to authorize add/update/remove of relationships

2018-08-08 Thread Nixon Rodrigues


> On Aug. 8, 2018, 5:13 p.m., Velmurugan Periasamy wrote:
> > ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
> > Lines 25 (patched)
> > 
> >
> > I am getting below compilation error in master branch. Could you please 
> > clarify if any atlas dependencies need to be changed? 
> > 
> > ```
> > [INFO] -
> > [ERROR] COMPILATION ERROR :
> > [INFO] -
> > [ERROR] 
> > /Users/vperiasamy/git/tlp-ranger/master/ranger/ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java:[25,33]
> >  error: cannot find symbol
> > [ERROR]   symbol:   class AtlasRelationshipAccessRequest
> >   location: package org.apache.atlas.authorize
> > 
> > /Users/vperiasamy/git/tlp-ranger/master/ranger/ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java:[182,32]
> >  error: cannot find symbol
> > [ERROR]   symbol:   class AtlasRelationshipAccessRequest
> >   location: class RangerAtlasAuthorizer
> > 
> > /Users/vperiasamy/git/tlp-ranger/master/ranger/ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java:[112,16]
> >  error: name clash: isAccessAllowed(AtlasAdminAccessRequest) in 
> > RangerAtlasAuthorizer overrides a method whose erasure is the same as 
> > another method, yet neither overrides the other
> > [ERROR]   first method:  isAccessAllowed(AtlasTypeAccessRequest) in 
> > RangerAtlasAuthorizer
> >   second method: isAccessAllowed(AtlasRelationshipAccessRequest) in 
> > RangerAtlasAuthorizer
> > 
> > /Users/vperiasamy/git/tlp-ranger/master/ranger/ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java:[135,16]
> >  error: name clash: isAccessAllowed(AtlasEntityAccessRequest) in 
> > RangerAtlasAuthorizer overrides a method whose erasure is the same as 
> > another method, yet neither overrides the other
> > [ERROR]   first method:  isAccessAllowed(AtlasTypeAccessRequest) in 
> > RangerAtlasAuthorizer
> >   second method: isAccessAllowed(AtlasRelationshipAccessRequest) in 
> > RangerAtlasAuthorizer
> > 
> > /Users/vperiasamy/git/tlp-ranger/master/ranger/ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java:[158,16]
> >  error: name clash: isAccessAllowed(AtlasTypeAccessRequest) in 
> > RangerAtlasAuthorizer overrides a method whose erasure is the same as 
> > another method, yet neither overrides the other
> > ```

I could build the patch locally, I did face above error while compile, I had to 
remove setting.xml from .m2 directory to get build get going, I verified that 
atlas libraries are published to apache repository -> 
https://repository.apache.org/content/repositories/snapshots/org/apache/atlas/atlas-authorization/2.0.0-SNAPSHOT/

Can you please retry.


- Nixon


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68269/#review206988
---


On Aug. 8, 2018, 4:47 p.m., Nixon Rodrigues wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68269/
> ---
> 
> (Updated Aug. 8, 2018, 4:47 p.m.)
> 
> 
> Review request for ranger, Madhan Neethiraj, Mehul Parikh, and Velmurugan 
> Periasamy.
> 
> 
> Bugs: RANGER-2184
> https://issues.apache.org/jira/browse/RANGER-2184
> 
> 
> Repository: ranger
> 
> 
> Description
> ---
> 
> This patch includes update to RangerAtlas authorization to provide 
> authorization for Relationship with 
> 
> Actions : add-relationship, update-relationship, remove-relationship
> 
> 
> Diffs
> -
> 
>   
> plugin-atlas/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
>  aa815b266 
>   
> plugin-atlas/src/main/java/org/apache/ranger/services/atlas/RangerServiceAtlas.java
>  0ee262796 
>   
> ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
>  609dddb24 
> 
> 
> Diff: https://reviews.apache.org/r/68269/diff/2/
> 
> 
> Testing
> ---
> 
> Tested authorization with policies on end1 & end2 of entity-type and 
> classification.
> 
> 
> Thanks,
> 
> Nixon Rodrigues
> 
>



Re: Review Request 68269: RANGER-2184 : Update RangerAtlas authorization to authorize add/update/remove of relationships

2018-08-08 Thread Velmurugan Periasamy

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68269/#review206988
---




ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
Lines 25 (patched)


I am getting below compilation error in master branch. Could you please 
clarify if any atlas dependencies need to be changed? 

```
[INFO] -
[ERROR] COMPILATION ERROR :
[INFO] -
[ERROR] 
/Users/vperiasamy/git/tlp-ranger/master/ranger/ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java:[25,33]
 error: cannot find symbol
[ERROR]   symbol:   class AtlasRelationshipAccessRequest
  location: package org.apache.atlas.authorize

/Users/vperiasamy/git/tlp-ranger/master/ranger/ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java:[182,32]
 error: cannot find symbol
[ERROR]   symbol:   class AtlasRelationshipAccessRequest
  location: class RangerAtlasAuthorizer

/Users/vperiasamy/git/tlp-ranger/master/ranger/ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java:[112,16]
 error: name clash: isAccessAllowed(AtlasAdminAccessRequest) in 
RangerAtlasAuthorizer overrides a method whose erasure is the same as another 
method, yet neither overrides the other
[ERROR]   first method:  isAccessAllowed(AtlasTypeAccessRequest) in 
RangerAtlasAuthorizer
  second method: isAccessAllowed(AtlasRelationshipAccessRequest) in 
RangerAtlasAuthorizer

/Users/vperiasamy/git/tlp-ranger/master/ranger/ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java:[135,16]
 error: name clash: isAccessAllowed(AtlasEntityAccessRequest) in 
RangerAtlasAuthorizer overrides a method whose erasure is the same as another 
method, yet neither overrides the other
[ERROR]   first method:  isAccessAllowed(AtlasTypeAccessRequest) in 
RangerAtlasAuthorizer
  second method: isAccessAllowed(AtlasRelationshipAccessRequest) in 
RangerAtlasAuthorizer

/Users/vperiasamy/git/tlp-ranger/master/ranger/ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java:[158,16]
 error: name clash: isAccessAllowed(AtlasTypeAccessRequest) in 
RangerAtlasAuthorizer overrides a method whose erasure is the same as another 
method, yet neither overrides the other
```


- Velmurugan Periasamy


On Aug. 8, 2018, 4:47 p.m., Nixon Rodrigues wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68269/
> ---
> 
> (Updated Aug. 8, 2018, 4:47 p.m.)
> 
> 
> Review request for ranger, Madhan Neethiraj, Mehul Parikh, and Velmurugan 
> Periasamy.
> 
> 
> Bugs: RANGER-2184
> https://issues.apache.org/jira/browse/RANGER-2184
> 
> 
> Repository: ranger
> 
> 
> Description
> ---
> 
> This patch includes update to RangerAtlas authorization to provide 
> authorization for Relationship with 
> 
> Actions : add-relationship, update-relationship, remove-relationship
> 
> 
> Diffs
> -
> 
>   
> plugin-atlas/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
>  aa815b266 
>   
> plugin-atlas/src/main/java/org/apache/ranger/services/atlas/RangerServiceAtlas.java
>  0ee262796 
>   
> ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
>  609dddb24 
> 
> 
> Diff: https://reviews.apache.org/r/68269/diff/2/
> 
> 
> Testing
> ---
> 
> Tested authorization with policies on end1 & end2 of entity-type and 
> classification.
> 
> 
> Thanks,
> 
> Nixon Rodrigues
> 
>



Re: Review Request 68269: RANGER-2184 : Update RangerAtlas authorization to authorize add/update/remove of relationships

2018-08-08 Thread Nixon Rodrigues

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68269/
---

(Updated Aug. 8, 2018, 4:47 p.m.)


Review request for ranger, Madhan Neethiraj, Mehul Parikh, and Velmurugan 
Periasamy.


Bugs: RANGER-2184
https://issues.apache.org/jira/browse/RANGER-2184


Repository: ranger


Description
---

This patch includes update to RangerAtlas authorization to provide 
authorization for Relationship with 

Actions : add-relationship, update-relationship, remove-relationship


Diffs
-

  
plugin-atlas/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
 aa815b266 
  
plugin-atlas/src/main/java/org/apache/ranger/services/atlas/RangerServiceAtlas.java
 0ee262796 
  
ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
 609dddb24 


Diff: https://reviews.apache.org/r/68269/diff/2/


Testing
---

Tested authorization with policies on end1 & end2 of entity-type and 
classification.


Thanks,

Nixon Rodrigues



Re: Review Request 68269: RANGER-2184 : Update RangerAtlas authorization to authorize add/update/remove of relationships

2018-08-08 Thread Nixon Rodrigues

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68269/
---

(Updated Aug. 8, 2018, 3 p.m.)


Review request for ranger, Madhan Neethiraj, Mehul Parikh, and Velmurugan 
Periasamy.


Changes
---

Removed ranger-servicedef-atlas.json from this patch since it was conflicted 
with RANGER-2182 https://reviews.apache.org/r/68191/diff/2#0


Bugs: RANGER-2184
https://issues.apache.org/jira/browse/RANGER-2184


Repository: ranger


Description
---

This patch includes update to RangerAtlas authorization to provide 
authorization for Relationship with 

Actions : add-relationship, update-relationship, remove-relationship


Diffs (updated)
-

  
plugin-atlas/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
 aa815b266 
  
plugin-atlas/src/main/java/org/apache/ranger/services/atlas/RangerServiceAtlas.java
 0ee262796 
  
ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
 609dddb24 


Diff: https://reviews.apache.org/r/68269/diff/2/

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


Testing
---

Tested authorization with policies on end1 & end2 of entity-type and 
classification.


Thanks,

Nixon Rodrigues



Re: Review Request 68269: RANGER-2184 : Update RangerAtlas authorization to authorize add/update/remove of relationships

2018-08-08 Thread Nixon Rodrigues

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68269/
---

(Updated Aug. 8, 2018, 2:14 p.m.)


Review request for ranger, Madhan Neethiraj, Mehul Parikh, and Velmurugan 
Periasamy.


Bugs: RANGER-2184
https://issues.apache.org/jira/browse/RANGER-2184


Repository: ranger


Description (updated)
---

This patch includes update to RangerAtlas authorization to provide 
authorization for Relationship with 

Actions : add-relationship, update-relationship, remove-relationship


Diffs
-

  agents-common/src/main/resources/service-defs/ranger-servicedef-atlas.json 
8838f418f 
  
plugin-atlas/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
 aa815b266 
  
plugin-atlas/src/main/java/org/apache/ranger/services/atlas/RangerServiceAtlas.java
 0ee262796 
  
ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
 609dddb24 


Diff: https://reviews.apache.org/r/68269/diff/1/


Testing
---

Tested authorization with policies on end1 & end2 of entity-type and 
classification.


Thanks,

Nixon Rodrigues



Review Request 68269: RANGER-2184 : Update RangerAtlas authorization to authorize add/update/remove of relationships

2018-08-08 Thread Nixon Rodrigues

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68269/
---

Review request for ranger, Madhan Neethiraj, Mehul Parikh, and Velmurugan 
Periasamy.


Bugs: RANGER-2184
https://issues.apache.org/jira/browse/RANGER-2184


Repository: ranger


Description
---

This patch includes update to RangerAtlas authorization to provide authorize 
for Relationship with 

Actions : add-relationship, update-relationship, remove-relationship


Diffs
-

  agents-common/src/main/resources/service-defs/ranger-servicedef-atlas.json 
8838f418f 
  
plugin-atlas/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
 aa815b266 
  
plugin-atlas/src/main/java/org/apache/ranger/services/atlas/RangerServiceAtlas.java
 0ee262796 
  
ranger-atlas-plugin-shim/src/main/java/org/apache/ranger/authorization/atlas/authorizer/RangerAtlasAuthorizer.java
 609dddb24 


Diff: https://reviews.apache.org/r/68269/diff/1/


Testing
---

Tested authorization with policies on end1 & end2 of entity-type and 
classification.


Thanks,

Nixon Rodrigues