appbaseio / mirage

:art: GUI for simplifying Elasticsearch Query DSL
http://opensource.appbase.io/mirage
Other
2.21k stars 125 forks source link

Elastic 1.7.3 Without HTTPS Basic Auth #40

Closed rahst12 closed 7 years ago

rahst12 commented 7 years ago

Hi, I'm running Elastic 1.7.3 without HTTPS Basic Auth. I've installed the Mirage Docker version. I can't seem to get it to connect.. Looking at the web debug console logs, it looks like it's not liking that I don't have a username/pass on the elastic url.

Any advice would be great..

Thanks

siddharthlatest commented 7 years ago

@rahst12 Mirage is only compatible with v2.x and above.

siddharthlatest commented 7 years ago

We will look into the use of non-basic authenticated ES, cc @farhan687

rahst12 commented 7 years ago

On the main page under the docker part it says: "Works with Elasticsearch versions 1.x, 2.x and 5.x.".. Is that just out of date?

rahst12 commented 7 years ago

I'm looking to upgrade elastic... Is there a plugin I should be looking for that does authentication? I see references to Shield all over.

siddharthlatest commented 7 years ago

@rahst12 If you just need Basic Auth, it can be set up in a nginx conf. There are already docker images out there https://hub.docker.com/r/beevelop/nginx-basic-auth/ which can then forward to Elasticsearch. If you need something more sophisticated, you can then either go with Shield or https://github.com/floragunncom/search-guard.

siddharthlatest commented 7 years ago

Conclusion:

  1. Mirage isn't compatible with v1.x.
  2. The docs have been updated at https://hub.docker.com/r/appbaseio/mirage/ with more details on how to setup CORS config with Elasticsearch.
  3. Mirage works with an Elasticsearch cluster both with and without a basic auth setup.