You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sentry.apache.org by Gregory Chanan <gc...@cloudera.com> on 2013/10/16 03:43:38 UTC

Review Request 14665: SENTRY-36 Create sentry-binding-solr module

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

Review request for sentry, Brock Noland and Shreepadma Venugopalan.


Bugs: SENTRY-36
    https://issues.apache.org/jira/browse/SENTRY-36


Repository: sentry


Description
-------

A simple implementation of the binding layer for solr, providing index-level authorization.

NOTE: this does not include the Solr CustomComponent that will call this code from a solr context, as described in SENTRY-36.  That code is still to be written.  This is just the code that the custom component will call to inteface with Sentry.


Diffs
-----

  pom.xml a713c41 
  sentry-binding/pom.xml af2efa4 
  sentry-binding/sentry-binding-solr/pom.xml PRE-CREATION 
  sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/authz/SentrySolrAuthorizationException.java PRE-CREATION 
  sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/authz/SolrAuthzBinding.java PRE-CREATION 
  sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/conf/SolrAuthzConf.java PRE-CREATION 
  sentry-binding/sentry-binding-solr/src/test/java/org/apache/sentry/binding/solr/TestSolrAuthzBinding.java PRE-CREATION 
  sentry-binding/sentry-binding-solr/src/test/resources/log4j.properties PRE-CREATION 
  sentry-binding/sentry-binding-solr/src/test/resources/sentry-site.xml PRE-CREATION 
  sentry-binding/sentry-binding-solr/src/test/resources/test-authz-provider.ini PRE-CREATION 
  sentry-dist/pom.xml 895b03c 
  sentry-dist/src/main/assembly/src.xml 91f5696 
  sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/ResourceAuthorizationProvider.java 4e12b70 

Diff: https://reviews.apache.org/r/14665/diff/


Testing
-------

Ran the unit tests successfully; I haven't run the e2e tests but this shouldn't affect them.


Thanks,

Gregory Chanan


Re: Review Request 14665: SENTRY-36 Create sentry-binding-solr module

Posted by Gregory Chanan <gc...@cloudera.com>.

> On Oct. 16, 2013, 12:58 p.m., Brock Noland wrote:
> > sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/conf/SolrAuthzConf.java, line 80
> > <https://reviews.apache.org/r/14665/diff/1/?file=365008#file365008line80>
> >
> >     This should just be:
> >     
> >     return get(varName, AuthzConfVars.getDefault(varName));
> >     
> >     right?

That's better, thank you.


> On Oct. 16, 2013, 12:58 p.m., Brock Noland wrote:
> > sentry-binding/sentry-binding-solr/src/test/java/org/apache/sentry/binding/solr/TestSolrAuthzBinding.java, line 140
> > <https://reviews.apache.org/r/14665/diff/1/?file=365009#file365009line140>
> >
> >     I think you mean assertTrue()? IIRC Java assertions are disabled by default.

Fixed.


- Gregory


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


On Oct. 16, 2013, 1:43 a.m., Gregory Chanan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/14665/
> -----------------------------------------------------------
> 
> (Updated Oct. 16, 2013, 1:43 a.m.)
> 
> 
> Review request for sentry, Brock Noland and Shreepadma Venugopalan.
> 
> 
> Bugs: SENTRY-36
>     https://issues.apache.org/jira/browse/SENTRY-36
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> A simple implementation of the binding layer for solr, providing index-level authorization.
> 
> NOTE: this does not include the Solr CustomComponent that will call this code from a solr context, as described in SENTRY-36.  That code is still to be written.  This is just the code that the custom component will call to inteface with Sentry.
> 
> 
> Diffs
> -----
> 
>   pom.xml a713c41 
>   sentry-binding/pom.xml af2efa4 
>   sentry-binding/sentry-binding-solr/pom.xml PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/authz/SentrySolrAuthorizationException.java PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/authz/SolrAuthzBinding.java PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/conf/SolrAuthzConf.java PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/test/java/org/apache/sentry/binding/solr/TestSolrAuthzBinding.java PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/test/resources/log4j.properties PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/test/resources/sentry-site.xml PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/test/resources/test-authz-provider.ini PRE-CREATION 
>   sentry-dist/pom.xml 895b03c 
>   sentry-dist/src/main/assembly/src.xml 91f5696 
>   sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/ResourceAuthorizationProvider.java 4e12b70 
> 
> Diff: https://reviews.apache.org/r/14665/diff/
> 
> 
> Testing
> -------
> 
> Ran the unit tests successfully; I haven't run the e2e tests but this shouldn't affect them.
> 
> 
> Thanks,
> 
> Gregory Chanan
> 
>


Re: Review Request 14665: SENTRY-36 Create sentry-binding-solr module

Posted by Brock Noland <br...@cloudera.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/14665/#review27063
-----------------------------------------------------------


Mostly LGTM, just two questions below.


sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/conf/SolrAuthzConf.java
<https://reviews.apache.org/r/14665/#comment52692>

    This should just be:
    
    return get(varName, AuthzConfVars.getDefault(varName));
    
    right?



sentry-binding/sentry-binding-solr/src/test/java/org/apache/sentry/binding/solr/TestSolrAuthzBinding.java
<https://reviews.apache.org/r/14665/#comment52690>

    I think you mean assertTrue()? IIRC Java assertions are disabled by default.



sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/ResourceAuthorizationProvider.java
<https://reviews.apache.org/r/14665/#comment52691>

    Good catch


- Brock Noland


On Oct. 16, 2013, 1:43 a.m., Gregory Chanan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/14665/
> -----------------------------------------------------------
> 
> (Updated Oct. 16, 2013, 1:43 a.m.)
> 
> 
> Review request for sentry, Brock Noland and Shreepadma Venugopalan.
> 
> 
> Bugs: SENTRY-36
>     https://issues.apache.org/jira/browse/SENTRY-36
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> A simple implementation of the binding layer for solr, providing index-level authorization.
> 
> NOTE: this does not include the Solr CustomComponent that will call this code from a solr context, as described in SENTRY-36.  That code is still to be written.  This is just the code that the custom component will call to inteface with Sentry.
> 
> 
> Diffs
> -----
> 
>   pom.xml a713c41 
>   sentry-binding/pom.xml af2efa4 
>   sentry-binding/sentry-binding-solr/pom.xml PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/authz/SentrySolrAuthorizationException.java PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/authz/SolrAuthzBinding.java PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/conf/SolrAuthzConf.java PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/test/java/org/apache/sentry/binding/solr/TestSolrAuthzBinding.java PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/test/resources/log4j.properties PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/test/resources/sentry-site.xml PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/test/resources/test-authz-provider.ini PRE-CREATION 
>   sentry-dist/pom.xml 895b03c 
>   sentry-dist/src/main/assembly/src.xml 91f5696 
>   sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/ResourceAuthorizationProvider.java 4e12b70 
> 
> Diff: https://reviews.apache.org/r/14665/diff/
> 
> 
> Testing
> -------
> 
> Ran the unit tests successfully; I haven't run the e2e tests but this shouldn't affect them.
> 
> 
> Thanks,
> 
> Gregory Chanan
> 
>


Re: Review Request 14665: SENTRY-36 Create sentry-binding-solr module

Posted by Brock Noland <br...@cloudera.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/14665/#review27081
-----------------------------------------------------------

Ship it!


Ship It!

- Brock Noland


On Oct. 16, 2013, 7:01 p.m., Gregory Chanan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/14665/
> -----------------------------------------------------------
> 
> (Updated Oct. 16, 2013, 7:01 p.m.)
> 
> 
> Review request for sentry, Brock Noland and Shreepadma Venugopalan.
> 
> 
> Bugs: SENTRY-36
>     https://issues.apache.org/jira/browse/SENTRY-36
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> A simple implementation of the binding layer for solr, providing index-level authorization.
> 
> NOTE: this does not include the Solr CustomComponent that will call this code from a solr context, as described in SENTRY-36.  That code is still to be written.  This is just the code that the custom component will call to inteface with Sentry.
> 
> 
> Diffs
> -----
> 
>   pom.xml a713c41 
>   sentry-binding/pom.xml af2efa4 
>   sentry-binding/sentry-binding-solr/pom.xml PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/authz/SentrySolrAuthorizationException.java PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/authz/SolrAuthzBinding.java PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/conf/SolrAuthzConf.java PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/test/java/org/apache/sentry/binding/solr/TestSolrAuthzBinding.java PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/test/resources/log4j.properties PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/test/resources/sentry-site.xml PRE-CREATION 
>   sentry-binding/sentry-binding-solr/src/test/resources/test-authz-provider.ini PRE-CREATION 
>   sentry-dist/pom.xml 895b03c 
>   sentry-dist/src/main/assembly/src.xml 91f5696 
>   sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/ResourceAuthorizationProvider.java 4e12b70 
> 
> Diff: https://reviews.apache.org/r/14665/diff/
> 
> 
> Testing
> -------
> 
> Ran the unit tests successfully; I haven't run the e2e tests but this shouldn't affect them.
> 
> 
> Thanks,
> 
> Gregory Chanan
> 
>


Re: Review Request 14665: SENTRY-36 Create sentry-binding-solr module

Posted by Gregory Chanan <gc...@cloudera.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/14665/
-----------------------------------------------------------

(Updated Oct. 16, 2013, 7:01 p.m.)


Review request for sentry, Brock Noland and Shreepadma Venugopalan.


Changes
-------

Updated for Brock's comments.


Bugs: SENTRY-36
    https://issues.apache.org/jira/browse/SENTRY-36


Repository: sentry


Description
-------

A simple implementation of the binding layer for solr, providing index-level authorization.

NOTE: this does not include the Solr CustomComponent that will call this code from a solr context, as described in SENTRY-36.  That code is still to be written.  This is just the code that the custom component will call to inteface with Sentry.


Diffs (updated)
-----

  pom.xml a713c41 
  sentry-binding/pom.xml af2efa4 
  sentry-binding/sentry-binding-solr/pom.xml PRE-CREATION 
  sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/authz/SentrySolrAuthorizationException.java PRE-CREATION 
  sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/authz/SolrAuthzBinding.java PRE-CREATION 
  sentry-binding/sentry-binding-solr/src/main/java/org/apache/sentry/binding/solr/conf/SolrAuthzConf.java PRE-CREATION 
  sentry-binding/sentry-binding-solr/src/test/java/org/apache/sentry/binding/solr/TestSolrAuthzBinding.java PRE-CREATION 
  sentry-binding/sentry-binding-solr/src/test/resources/log4j.properties PRE-CREATION 
  sentry-binding/sentry-binding-solr/src/test/resources/sentry-site.xml PRE-CREATION 
  sentry-binding/sentry-binding-solr/src/test/resources/test-authz-provider.ini PRE-CREATION 
  sentry-dist/pom.xml 895b03c 
  sentry-dist/src/main/assembly/src.xml 91f5696 
  sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/ResourceAuthorizationProvider.java 4e12b70 

Diff: https://reviews.apache.org/r/14665/diff/


Testing
-------

Ran the unit tests successfully; I haven't run the e2e tests but this shouldn't affect them.


Thanks,

Gregory Chanan