[jira] [Commented] (SOLR-8213) SolrJ JDBC support basic authentication

2016-11-16 Thread Kevin Risden (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15671725#comment-15671725
 ] 

Kevin Risden commented on SOLR-8213:


Linking to SOLR-9779 since it is most likely need for this to work correctly.

> SolrJ JDBC support basic authentication
> ---
>
> Key: SOLR-8213
> URL: https://issues.apache.org/jira/browse/SOLR-8213
> Project: Solr
>  Issue Type: Improvement
>  Components: SolrJ
>Affects Versions: 6.0
>Reporter: Kevin Risden
> Attachments: SOLR-8213.patch, add_401_httpstatus_code_check.patch, 
> add_basic_authentication_authorization_streaming.patch
>
>
> SolrJ JDBC doesn't support authentication where as Solr supports Basic and 
> Kerberos authentication currently. 



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-8213) SolrJ JDBC support basic authentication

2016-11-16 Thread Kevin Risden (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15670864#comment-15670864
 ] 

Kevin Risden commented on SOLR-8213:


Potentially related email thread: 
http://search-lucene.com/m/Solr/eHNl3vQZB16s7az1

> SolrJ JDBC support basic authentication
> ---
>
> Key: SOLR-8213
> URL: https://issues.apache.org/jira/browse/SOLR-8213
> Project: Solr
>  Issue Type: Improvement
>  Components: SolrJ
>Affects Versions: 6.0
>Reporter: Kevin Risden
> Attachments: SOLR-8213.patch, add_401_httpstatus_code_check.patch, 
> add_basic_authentication_authorization_streaming.patch
>
>
> SolrJ JDBC doesn't support authentication where as Solr supports Basic and 
> Kerberos authentication currently. 



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-8213) SolrJ JDBC support basic authentication

2016-03-15 Thread Joel Bernstein (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15196247#comment-15196247
 ] 

Joel Bernstein commented on SOLR-8213:
--

Code from the SQLHandler:

{code}
CloudSolrStream cstream = new CloudSolrStream(zkHost, collection, params);
tupleStream = new RollupStream(cstream, buckets, metrics);

if(numWorkers > 1) {
  // Do the rollups in parallel
  // Maintain the sort of the Tuples coming from the workers.
  StreamComparator comp = bucketSortComp(buckets, sortDirection);
  ParallelStream parallelStream = new ParallelStream(workerZkHost, 
workerCollection, tupleStream, numWorkers, comp);

  StreamFactory factory = new StreamFactory()
  .withFunctionName("search", CloudSolrStream.class)
  .withFunctionName("parallel", ParallelStream.class)
  .withFunctionName("rollup", RollupStream.class)
  .withFunctionName("sum", SumMetric.class)
  .withFunctionName("min", MinMetric.class)
  .withFunctionName("max", MaxMetric.class)
  .withFunctionName("avg", MeanMetric.class)
  .withFunctionName("count", CountMetric.class);

  parallelStream.setStreamFactory(factory);
  tupleStream = parallelStream;
}

{code}

> SolrJ JDBC support basic authentication
> ---
>
> Key: SOLR-8213
> URL: https://issues.apache.org/jira/browse/SOLR-8213
> Project: Solr
>  Issue Type: Improvement
>  Components: SolrJ
>Affects Versions: master
>Reporter: Kevin Risden
> Attachments: SOLR-8213.patch, add_401_httpstatus_code_check.patch, 
> add_basic_authentication_authorization_streaming.patch
>
>
> SolrJ JDBC doesn't support authentication where as Solr supports Basic and 
> Kerberos authentication currently. 



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-8213) SolrJ JDBC support basic authentication

2016-03-15 Thread Joel Bernstein (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15196236#comment-15196236
 ] 

Joel Bernstein commented on SOLR-8213:
--

A little more information on how the parallelism is accomplished in the 
SQLHandler. 

If you look through the code in the SQLHandler you'll find a few places where 
the ParallelStream is used. In these scenarios the ParallelStream wraps another 
stream, for example the RollupStream, and sends it to worker nodes. It does 
this by calling toExpression() on the underlying stream which creates a 
Streaming Expression which is sent across the wire to the /stream handler on 
the workers. The workers run the expression and stream tuples back to the /sql 
handler for further processing. So it's the ParallelStream that would need to 
be adjusted if AUTH is to be passed through to the workers.

> SolrJ JDBC support basic authentication
> ---
>
> Key: SOLR-8213
> URL: https://issues.apache.org/jira/browse/SOLR-8213
> Project: Solr
>  Issue Type: Improvement
>  Components: SolrJ
>Affects Versions: master
>Reporter: Kevin Risden
> Attachments: SOLR-8213.patch, add_401_httpstatus_code_check.patch, 
> add_basic_authentication_authorization_streaming.patch
>
>
> SolrJ JDBC doesn't support authentication where as Solr supports Basic and 
> Kerberos authentication currently. 



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-8213) SolrJ JDBC support basic authentication

2016-03-14 Thread Joel Bernstein (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15194502#comment-15194502
 ] 

Joel Bernstein commented on SOLR-8213:
--

I suspect it won't be get passed through. But if the we do basic auth on the 
SQLHandler perhaps that's enough. 

> SolrJ JDBC support basic authentication
> ---
>
> Key: SOLR-8213
> URL: https://issues.apache.org/jira/browse/SOLR-8213
> Project: Solr
>  Issue Type: Improvement
>  Components: SolrJ
>Affects Versions: master
>Reporter: Kevin Risden
> Attachments: SOLR-8213.patch, add_401_httpstatus_code_check.patch, 
> add_basic_authentication_authorization_streaming.patch
>
>
> SolrJ JDBC doesn't support authentication where as Solr supports Basic and 
> Kerberos authentication currently. 



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-8213) SolrJ JDBC support basic authentication

2016-03-14 Thread Kevin Risden (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15194301#comment-15194301
 ] 

Kevin Risden commented on SOLR-8213:


There needs to be some randomized testing of authentication/no authentication.

> SolrJ JDBC support basic authentication
> ---
>
> Key: SOLR-8213
> URL: https://issues.apache.org/jira/browse/SOLR-8213
> Project: Solr
>  Issue Type: Improvement
>  Components: SolrJ
>Affects Versions: master
>Reporter: Kevin Risden
> Attachments: SOLR-8213.patch, add_401_httpstatus_code_check.patch, 
> add_basic_authentication_authorization_streaming.patch
>
>
> SolrJ JDBC doesn't support authentication where as Solr supports Basic and 
> Kerberos authentication currently. 



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-8213) SolrJ JDBC support basic authentication

2016-03-10 Thread Kevin Risden (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15189336#comment-15189336
 ] 

Kevin Risden commented on SOLR-8213:


So username/password aren't removed from SolrParam when the request is sent by 
JSONTupleStream. I worry about this leaking credentials when it is handled by 
the SQL handler and passed across the cluster. Currently not sure there is a 
good way to pass credentials across the cluster without them being in the 
request parameters.

> SolrJ JDBC support basic authentication
> ---
>
> Key: SOLR-8213
> URL: https://issues.apache.org/jira/browse/SOLR-8213
> Project: Solr
>  Issue Type: Improvement
>  Components: SolrJ
>Affects Versions: master
>Reporter: Kevin Risden
> Attachments: SOLR-8213.patch, add_401_httpstatus_code_check.patch, 
> add_basic_authentication_authorization_streaming.patch
>
>
> SolrJ JDBC doesn't support authentication where as Solr supports Basic and 
> Kerberos authentication currently. 



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-8213) SolrJ JDBC support basic authentication

2016-03-10 Thread Kevin Risden (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15189330#comment-15189330
 ] 

Kevin Risden commented on SOLR-8213:


This same approach should be used for StreamTest and StreamExpressionTest as 
well. I only focused on JDBC so far.

> SolrJ JDBC support basic authentication
> ---
>
> Key: SOLR-8213
> URL: https://issues.apache.org/jira/browse/SOLR-8213
> Project: Solr
>  Issue Type: Improvement
>  Components: SolrJ
>Affects Versions: master
>Reporter: Kevin Risden
> Attachments: SOLR-8213.patch, add_401_httpstatus_code_check.patch, 
> add_basic_authentication_authorization_streaming.patch
>
>
> SolrJ JDBC doesn't support authentication where as Solr supports Basic and 
> Kerberos authentication currently. 



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org