ngageoint / elasticgeo

ElasticGeo provides a GeoTools data store that allows geospatial features from an Elasticsearch index to be published via OGC services using GeoServer.
GNU General Public License v3.0
168 stars 85 forks source link

X-Pack Security support #78

Closed corneversloot closed 6 years ago

corneversloot commented 6 years ago

Hi there, I am considering using this Elasticsearch connector for a project as it looks like a good fit what what I need. The Elasticsearch will be secured though using X-Pack so I am wondering weather this connector sopports that. A (very) quick review of the code gives me the impression it is not supported. Is this correct, and if so do you have any plans to add it any time soon? Thanks!

sjudeng commented 6 years ago

Hello. SSL is supported but not basic authentication. It should be straightforward to add support for basic auth by adding username and password store parameters to ElasticDataStoreFactory and using those to add a default Authorization header when building the RestClient here. I'll try to make these updates in the coming weeks or else you're welcome to submit a PR if you'd like.

corneversloot commented 6 years ago

It would be great if you can add it. If not, I might try to make changes later and submit a PR. Regardless of the particular project I might need it for I can see benefit of supporting X-Pack authorization to the connector. Thanks for the quick response!

BinyaminSchein commented 5 years ago

Why is this issue closed? How can you pass basic authentication parameters?

sjudeng commented 5 years ago

The new release candidate 2.14.2-RC1 includes updates to support basic authentication.