Skip to content

Commit ccda936

Browse files
committed
fix(elasticsearch): correct security configuration
1 parent 1950b72 commit ccda936

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ This project is deployed in accordance to the [DargStack template](https://githu
2828
## secrets
2929

3030

31-
- ### `elasticsearch_password`
31+
- ### `elasticsearch-keystore_password`
32+
33+
The search engine's password for the keystore.
34+
35+
- ### `elasticsearch-password`
3236

3337
The search engine's password for the default user.
3438

@@ -344,6 +348,10 @@ This project is deployed in accordance to the [DargStack template](https://githu
344348

345349
The change data capture's logs.
346350

351+
- ### `elasticsearch-configuration`
352+
353+
The search engine's configuration.
354+
347355
- ### `elasticsearch_data`
348356

349357
The search engine's data.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
elastic
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<string>

src/development/stack.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ x-shared:
1919
REDIS_URL: redis://redis:6379
2020
image: ghcr.io/zammad/zammad:6.5.2-90
2121
secrets:
22-
- source: elasticsearch_password
22+
- source: elasticsearch-password
2323
target: /run/environment-variables/ELASTICSEARCH_PASS
2424
- source: postgres_role_service_zammad_username
2525
target: /run/environment-variables/POSTGRESQL_USER
@@ -29,7 +29,10 @@ x-shared:
2929
- zammad_data:/opt/zammad/storage
3030
- ../production/configurations/zammad/docker-entrypoint.sh:/docker-entrypoint.sh:ro
3131
secrets:
32-
elasticsearch_password:
32+
elasticsearch-keystore_password:
33+
# The search engine's password for the keystore.
34+
file: ./secrets/elasticsearch/keystore_password.secret
35+
elasticsearch-password:
3336
# The search engine's password for the default user.
3437
file: ./secrets/elasticsearch/password.secret
3538
grafana_admin_email:
@@ -198,16 +201,22 @@ services:
198201
# You cannot access the search engine via a web interface.
199202
environment:
200203
discovery.type: single-node
201-
ELASTIC_PASSWORD_FILE: /run/secrets/elasticsearch_password
204+
ELASTIC_PASSWORD_FILE: /run/secrets/elasticsearch-password
202205
ES_JAVA_OPTS: -Xms1g -Xmx1g
206+
KEYSTORE_PASSWORD_FILE: /run/secrets/elasticsearch-keystore_password
203207
network.publish_host: elasticsearch
204208
image: elasticsearch:8.19.11
205209
secrets:
206-
- source: elasticsearch_password
210+
- source: elasticsearch-keystore_password
211+
uid: "1000"
212+
gid: "1000"
213+
mode: 0o400
214+
- source: elasticsearch-password
207215
uid: "1000"
208216
gid: "1000"
209217
mode: 0o400
210218
volumes:
219+
- elasticsearch-configuration:/usr/share/elasticsearch/config
211220
- elasticsearch_data:/usr/share/elasticsearch/data
212221
geoip:
213222
# You cannot access the ip geolocator via a web interface.
@@ -678,6 +687,9 @@ volumes:
678687
debezium_kafka_logs:
679688
# The change data capture's logs.
680689
{}
690+
elasticsearch-configuration:
691+
# The search engine's configuration.
692+
{}
681693
elasticsearch_data:
682694
# The search engine's data.
683695
{}

0 commit comments

Comments
 (0)