Search Guard Auth - Elasticpress

Elasticsearch - 5.6.13

Search Guard - search-guard-5:5.6.13-19.2

Java - openjdk version “1.8.0_191”

Wordpress Elasticpress plugin auth fails ES_SHIELD is configured in wp-config.php.

Auth works ok using curl.

When asking questions, please provide the following information:

  • Search Guard and Elasticsearch version

  • Installed and used enterprise modules, if any

  • JVM version and operating system version

  • Search Guard configuration files

  • Elasticsearch log messages on debug level

  • Other installed Elasticsearch or Kibana plugins, if any

That far to few pieces of information to help you here. Can you pls. provide (strip sensitive values):

  • elasticsearch.yml

  • sg_config.yml

  • wp-config.php

···

On Tuesday, 11 December 2018 14:00:37 UTC+1, patr…@…com.au wrote:

Elasticsearch - 5.6.13

Search Guard - search-guard-5:5.6.13-19.2

Java - openjdk version “1.8.0_191”

Wordpress Elasticpress plugin auth fails ES_SHIELD is configured in wp-config.php.

Auth works ok using curl.

When asking questions, please provide the following information:

  • Search Guard and Elasticsearch version
  • Installed and used enterprise modules, if any
  • JVM version and operating system version
  • Search Guard configuration files
  • Elasticsearch log messages on debug level
  • Other installed Elasticsearch or Kibana plugins, if any

I have attached.

elasticsearch.yml (3.56 KB)

sg_config.yml (9.37 KB)

wp-config.php (3.05 KB)

···

On Wednesday, December 12, 2018 at 12:00:37 AM UTC+11, pat…@amatc.com.au wrote:

Elasticsearch - 5.6.13

Search Guard - search-guard-5:5.6.13-19.2

Java - openjdk version “1.8.0_191”

Wordpress Elasticpress plugin auth fails ES_SHIELD is configured in wp-config.php.

Auth works ok using curl.

When asking questions, please provide the following information:

  • Search Guard and Elasticsearch version
  • Installed and used enterprise modules, if any
  • JVM version and operating system version
  • Search Guard configuration files
  • Elasticsearch log messages on debug level
  • Other installed Elasticsearch or Kibana plugins, if any

I assume it must be

define( 'ES_SHIELD', 'admin:admin' ); #typo
define( 'EP_HOST', 'https://localhost:9200' ); #https instead of http

instead of

define( 'ES_SHEILD', 'admin:admin' );
define( 'EP_HOST', 'http://localhost:9200' );

Right?

···

Am 11.12.2018 um 22:09 schrieb patrick@amatc.com.au:

I have attached.

On Wednesday, December 12, 2018 at 12:00:37 AM UTC+11, pat...@amatc.com.au wrote:
Elasticsearch - 5.6.13
Search Guard - search-guard-5:5.6.13-19.2
Java - openjdk version "1.8.0_191"

Wordpress Elasticpress plugin auth fails ES_SHIELD is configured in wp-config.php.

Auth works ok using curl.

When asking questions, please provide the following information:

* Search Guard and Elasticsearch version
* Installed and used enterprise modules, if any
* JVM version and operating system version
* Search Guard configuration files
* Elasticsearch log messages on debug level
* Other installed Elasticsearch or Kibana plugins, if any

--
You received this message because you are subscribed to the Google Groups "Search Guard Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to search-guard+unsubscribe@googlegroups.com.
To post to this group, send email to search-guard@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/351e6748-85d7-432e-af70-c8cd8c0172a4%40googlegroups.com\.
For more options, visit https://groups.google.com/d/optout\.
<elasticsearch.yml><sg_config.yml><wp-config.php>

I disabled https to test without it as I also had https issue. So this is not the issue.

···

On Wednesday, December 12, 2018 at 12:00:37 AM UTC+11, pat…@amatc.com.au wrote:

Elasticsearch - 5.6.13

Search Guard - search-guard-5:5.6.13-19.2

Java - openjdk version “1.8.0_191”

Wordpress Elasticpress plugin auth fails ES_SHIELD is configured in wp-config.php.

Auth works ok using curl.

When asking questions, please provide the following information:

  • Search Guard and Elasticsearch version
  • Installed and used enterprise modules, if any
  • JVM version and operating system version
  • Search Guard configuration files
  • Elasticsearch log messages on debug level
  • Other installed Elasticsearch or Kibana plugins, if any

I have resolved https issue but still have auth problem.

···

On Wednesday, December 12, 2018 at 9:13:55 AM UTC+11, pat…@amatc.com.au wrote:

I disabled https to test without it as I also had https issue. So this is not the issue.

On Wednesday, December 12, 2018 at 12:00:37 AM UTC+11, pat…@amatc.com.au wrote:

Elasticsearch - 5.6.13

Search Guard - search-guard-5:5.6.13-19.2

Java - openjdk version “1.8.0_191”

Wordpress Elasticpress plugin auth fails ES_SHIELD is configured in wp-config.php.

Auth works ok using curl.

When asking questions, please provide the following information:

  • Search Guard and Elasticsearch version
  • Installed and used enterprise modules, if any
  • JVM version and operating system version
  • Search Guard configuration files
  • Elasticsearch log messages on debug level
  • Other installed Elasticsearch or Kibana plugins, if any

I got help from this guide, I was also having same issue with elasticsearch when I was using wp-config.php file, Check this guide about the steps to fix all the issues: 15 WordPress WP-Config.php Tricks That You Should Learn Now!

1 Like