Skip to content

Commit b57c49e

Browse files
committed
add searchguard.cookie.password and xpack.reporting.encryptionKey
1 parent 87d2460 commit b57c49e

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.lagoon.secrets.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ parameters:
2020
description: Password to for incoming logstash http connections
2121
generate: expression
2222
from: "[a-zA-Z0-9]{32}"
23+
- name: SEARCHGUARD_COOKIE_PASSWORD
24+
description: Password to for searchguard cookies
25+
generate: expression
26+
from: "[a-zA-Z0-9]{32}"
2327
- name: SAFE_BRANCH
2428
description: Which branch this belongs to, special chars replaced with dashes
2529
required: true
@@ -69,3 +73,9 @@ objects:
6973
name: logstash-password
7074
stringData:
7175
LOGSTASH_PASSWORD: ${LOGSTASH_PASSWORD}
76+
- kind: Secret
77+
apiVersion: v1
78+
metadata:
79+
name: searchguard-cookie-password
80+
stringData:
81+
SEARCHGUARD_COOKIE_PASSWORD: ${SEARCHGUARD_COOKIE_PASSWORD}

services/logs-db-ui/.lagoon.yml

+5
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ objects:
111111
secretKeyRef:
112112
name: keycloak-admin-password
113113
key: KEYCLOAK_ADMIN_PASSWORD
114+
- name: SEARCHGUARD_COOKIE_PASSWORD
115+
valueFrom:
116+
secretKeyRef:
117+
name: searchguard-cookie-password
118+
key: SEARCHGUARD_COOKIE_PASSWORD
114119
resources:
115120
requests:
116121
cpu: 10m

services/logs-db-ui/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ENV NODE_OPTIONS="--max-old-space-size=2048" \
1111

1212
RUN echo $'xpack.security.enabled: false\n\
1313
xpack.monitoring.enabled: false\n\
14+
xpack.reporting.encryptionKey: "${LOGSDB_UI_XPACK_REPORTING_ENCRYPTIONKEY:-lagoonrocksyou}"\n\
1415
\n\
1516
# Configure the Kibana internal server user\n\
1617
elasticsearch.username: "kibanaserver"\n\
@@ -44,6 +45,8 @@ searchguard.openid.base_redirect_url: "${LOGSDB_UI_URL:-http://0.0.0.0:5601}"\n\
4445
\n\
4546
# optional: the scope of the identity token\n\
4647
searchguard.openid.scope: "profile email"\n\
48+
\n\
49+
searchguard.cookie.password: "${SEARCHGUARD_COOKIE_PASSWORD:-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}"\n\
4750
' >> config/kibana.yml
4851

4952
RUN bin/kibana-plugin install https://search.maven.org/remotecontent?filepath=com/floragunn/search-guard-kibana-plugin/6.4.2-15/search-guard-kibana-plugin-6.4.2-15.zip

0 commit comments

Comments
 (0)