[ 
https://issues.apache.org/jira/browse/KNOX-528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15526221#comment-15526221
 ] 

Larry McCay commented on KNOX-528:
----------------------------------

Hi [~risdenk] - The following is where most of the service tests go that need 
to test expectations of the rewrite rules and dispatch classes within the 
definition for a given service: 
https://github.com/apache/knox/blob/master/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayBasicFuncTest.java

This is especially important for when there are nuances to what rewrite or 
dispatch need to do.

That said, there are still a few things about he POC that needs to be addressed:

1. It seems that the solr definition provided in your POC is really only for 
the UI.  So, there needs to be a corresponding REST API definition as well. 
This is generally done with a SOLRUI and SOLR service pair.
2. The current definition is using the Anonymous authentication provider. This 
is commonly used for UIs that provide their own authentication with form-based 
login, HTTP basic auth or even with KnoxSSO integration, etc. It doesn't look 
like solr UI is doing any authentication for the user. Unauthenticated UI 
access should be avoided. We should discuss what is needed there further.
3. The dispatch being used is another common one for UIs and won't likely be 
sufficient for REST APIs though we can discuss that as well. It depends on what 
straight API access requires as far as credentials or identity propagation.
4. I need some clarity on the topology service descriptor. The URL within the 
default.xml topology for the service seems strange (I probably just need it 
explained to me) and there doesn't seem to be any HA specific URLs. I expected 
to see multiple URLs or Zookeeper specifics for determining the URLs, etc.

Thanks for this work - it will be very useful for the community!

> Support for Apache SOLR REST APIs
> ---------------------------------
>
>                 Key: KNOX-528
>                 URL: https://issues.apache.org/jira/browse/KNOX-528
>             Project: Apache Knox
>          Issue Type: Improvement
>            Reporter: Rick Kellogg
>             Fix For: Future
>
>
> Add Knox support for routing and securing Apache SOLR's REST APIs
> See: https://wiki.apache.org/solr/Solrj



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to