Skip to content

Commit

Permalink
Disable the security plugin for Elasticsearch servers used in tests
Browse files Browse the repository at this point in the history
1. Because we don't use it (we always connect unauthenticated)
2. Because we'll need to disable it in Elasticsearch 8+ anyway,
   otherwise Elasticsearch uses a self-signed certificate (which we have
   to allow in the client JVM) and mandates HTTP authentication.
  • Loading branch information
yrodiere committed May 19, 2022
1 parent 22c12c0 commit 4076577
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
<run>
<env>
<discovery.type>single-node</discovery.type>
<xpack.security.enabled>false</xpack.security.enabled>
<ES_JAVA_OPTS>-Xms512m -Xmx512m</ES_JAVA_OPTS>
</env>
<ports>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
<run>
<env>
<discovery.type>single-node</discovery.type>
<xpack.security.enabled>false</xpack.security.enabled>
<ES_JAVA_OPTS>-Xms512m -Xmx512m</ES_JAVA_OPTS>
</env>
<ports>
Expand Down
1 change: 1 addition & 0 deletions integration-tests/elasticsearch-rest-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
<run>
<env>
<discovery.type>single-node</discovery.type>
<xpack.security.enabled>false</xpack.security.enabled>
<ES_JAVA_OPTS>-Xms512m -Xmx512m</ES_JAVA_OPTS>
</env>
<ports>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
<run>
<env>
<discovery.type>single-node</discovery.type>
<xpack.security.enabled>false</xpack.security.enabled>
<ES_JAVA_OPTS>-Xms512m -Xmx512m</ES_JAVA_OPTS>
</env>
<ports>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@
<run>
<env>
<discovery.type>single-node</discovery.type>
<xpack.security.enabled>false</xpack.security.enabled>
<ES_JAVA_OPTS>-Xms512m -Xmx512m</ES_JAVA_OPTS>
</env>
<ports>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
<run>
<env>
<discovery.type>single-node</discovery.type>
<xpack.security.enabled>false</xpack.security.enabled>
<ES_JAVA_OPTS>-Xms512m -Xmx512m</ES_JAVA_OPTS>
</env>
<ports>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
<run>
<env>
<discovery.type>single-node</discovery.type>
<xpack.security.enabled>false</xpack.security.enabled>
<ES_JAVA_OPTS>-Xms512m -Xmx512m</ES_JAVA_OPTS>
</env>
<ports>
Expand Down
1 change: 1 addition & 0 deletions integration-tests/logging-gelf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
</ports>
<env>
<discovery.type>single-node</discovery.type>
<xpack.security.enabled>false</xpack.security.enabled>
<ES_JAVA_OPTS>-Xms512m -Xmx512m</ES_JAVA_OPTS>
</env>
<log>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
discovery.type: "single-node"
xpack.security.enabled: "false"
networks:
- efk

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
discovery.type: "single-node"
xpack.security.enabled: "false"
networks:
- elk

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
discovery.type: "single-node"
xpack.security.enabled: "false"
networks:
- graylog

Expand Down

0 comments on commit 4076577

Please sign in to comment.