Is it still possible to disable the search guard plugin?

504 views
Skip to first unread message

mcost...@np6.com

unread,
Aug 3, 2017, 5:58:53 AM8/3/17
to Search Guard Community Forum
I'm on ES / SG 5.2.2 and I've put `searchguard.enabled: false` in my elasticsearch config AND my kibana config. Yet, I get:

org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unknown setting [searchguard.enabled] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
es_1       |    at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-5.2.2.jar:5.2.2]
es_1       |    at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-5.2.2.jar:5.2.2]


? Please and thanks.

Jochen Kressin

unread,
Aug 3, 2017, 12:41:22 PM8/3/17
to Search Guard Community Forum
Hi,

it was never possible to disable Search Guard by a configuration, "searchguard.enabled" is not a valid config key. This feature is planned for SG6 though. But at the moment you'd need to remove the plugin as discussed in https://groups.google.com/forum/#!topic/search-guard/YkSSN-vZzkc

mcost...@np6.com

unread,
Aug 4, 2017, 3:27:37 AM8/4/17
to Search Guard Community Forum
Thank you

Jochen Kressin

unread,
Aug 16, 2017, 5:12:16 PM8/16/17
to Search Guard Community Forum
Just to keep you updated, we've backported the new setting to disable SG to 5.x. In SG v15 you can set in elasticsearch.yml:

searchguard.disabled: true

Which will disable SG completely without the need to delete the plugin or remove any SG related config entries in elasticsearch.yml.

According to our EOL policy this feature is available for all 5.5.x and 5.4.3 version of SG/ES.

Hope this helps!

mcost...@np6.com

unread,
Aug 17, 2017, 10:48:08 AM8/17/17
to Search Guard Community Forum
A great move in improving the flexibility of the tool. Thanks very much.
Reply all
Reply to author
Forward
0 new messages