Skip to content

Commit 7cdf8ec

Browse files
committed
helm: Fix containerSecurityContext to run PostgreSQL as non-root.
Fixes: #470.
1 parent 7b6ceb4 commit 7cdf8ec

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

kubernetes/chart/zulip/values.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,12 @@ sidecars: []
200200
postgresql:
201201
primary:
202202
containerSecurityContext:
203-
runAsUser: 0
203+
# 70 is the standard uid/gid of the "postgres" user in Alpine, which is
204+
# used as the base for zulip/zulip-postgresql
205+
# https://github.com/docker-library/postgres/blob/23987751b63ce745bd27b1119ab29dc4a1ffd728/Dockerfile-alpine.template#L7
206+
runAsUser: 70
207+
runAsGroup: 70
208+
readOnlyRootFilesystem: false
204209
## We need to override the Postgresql image to get all the plugins Zulip needs
205210
image:
206211
repository: zulip/zulip-postgresql

0 commit comments

Comments
 (0)