GitHub user mars opened a pull request:

    https://github.com/apache/incubator-predictionio/pull/372

    Elasticsearch basic HTTP authentication

    Add optional username-password configuration for the new Elasticsearch 5 
client; in `pio-env.sh` config:
    
    ```bash
    # Optional basic HTTP auth
    PIO_STORAGE_SOURCES_ELASTICSEARCH_USERNAME=my-name
    PIO_STORAGE_SOURCES_ELASTICSEARCH_PASSWORD=my-secret
    ```
    
    These credentials are sent in each Elasticsearch request as an HTTP Basic 
Authorization header.
    
    Enables use of public-cloud, hosted Elasticsearch clusters, such as [Bonsai 
on Heroku](https://elements.heroku.com/addons/bonsai).
    
    I'm looking into adding test coverage. (I have the Docker test suite setup 
now.)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mars/incubator-predictionio esclient-auth

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-predictionio/pull/372.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #372
    
----
commit 9f61541df44a5728450c3d25a79639e351e0ae6f
Author: Mars Hall <[email protected]>
Date:   2017-04-19T18:00:36Z

    Fix classpath computation error introduced when "storage got 
refactored"–@dszeto

commit 9ab99f6be9d0f018b3c900effe0be455f74f0046
Author: Mars Hall <[email protected]>
Date:   2017-04-19T18:37:18Z

    Optional Elasticsearch support for basic HTTP auth (username & password) 
using ES 5.3.0's "preemptive authentication"

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to