Elasticsearch 8 disable BEGIN SECURITY AUTO CONFIGURATION

Is there a way to disable this during install? or even have a yes and no option

I'm trying to create an automated install with my own certificates and sometimes during testing I don't want to have user authentication enabled

Thank you!

This worked, if anyone is wondering

#----------------------- BEGIN SECURITY AUTO CONFIGURATION -----------------------
#
# The following settings, TLS certificates, and keys have been automatically
# generated to configure Elasticsearch security features on 12-03-2022 01:30:03
#
# --------------------------------------------------------------------------------

# Enable security features
xpack.security.enabled: false
xpack.security.transport.ssl.enabled: false
xpack.security.http.ssl.enabled: false
2 Likes

You can also set

xpack.security.autoconfiguration.enabled: false

or simply

xpack.security.enabled: false

BEFORE you start Elasticsearch for the first time, and Elasticsearch will not configure security features.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.