Debug elasticsearch without basic auth (xpack.security.enabled=false)

Hi!

I'm trying to startup Elasticsearch in a debugger via:

./gradlew run --debug-jvm

I'm trying to also pass -Dxpack.security.enabled=false and I've tried a few things, including:

 export ES_JAVA_OPTS="-Dxpack.security.enabled=false"

But Elasticians must pass JVM args all the time to Elastic when starting up, so I thought I'd ask.

Not very often tbh, we almost always run Elasticsearch in the context of some test or other rather than just running a bare node with ./gradlew run.

There's some guidance in TESTING.asciidoc about how to configure ./gradlew run. In your case I think you want this:

./gradlew run -Dtests.es.xpack.security.enabled=false
1 Like

Thank you that is what I was missing!

1 Like