From bc7a37005de1655993fca5fd5ee01bd6f4cfb2a7 Mon Sep 17 00:00:00 2001 From: Ben Banfield-Zanin Date: Thu, 20 Nov 2025 16:52:22 +0000 Subject: [PATCH] Document why we don't use 'passfile' and have the Postgres password as a file --- .../matrix-authentication-service/config-overrides.yaml.tpl | 2 ++ .../configs/synapse/synapse-04-homeserver-overrides.yaml.tpl | 2 ++ newsfragments/881.internal.md | 1 + 3 files changed, 5 insertions(+) create mode 100644 newsfragments/881.internal.md diff --git a/charts/matrix-stack/configs/matrix-authentication-service/config-overrides.yaml.tpl b/charts/matrix-stack/configs/matrix-authentication-service/config-overrides.yaml.tpl index 0e58696f..9162a19c 100644 --- a/charts/matrix-stack/configs/matrix-authentication-service/config-overrides.yaml.tpl +++ b/charts/matrix-stack/configs/matrix-authentication-service/config-overrides.yaml.tpl @@ -37,6 +37,8 @@ http: database: +{{- /* We don't attempt to use passfile and mount the Secret directly due to +https://github.com/kubernetes/kubernetes/issues/129043 / https://github.com/kubernetes/kubernetes/issues/81089 */}} {{- if .postgres }} {{- with .postgres }} uri: "postgresql://{{ .user }}:${POSTGRES_PASSWORD}@{{ tpl .host $root }}:{{ .port }}/{{ .database }}?{{ with .sslMode }}sslmode={{ . }}&{{ end }}application_name=matrix-authentication-service" diff --git a/charts/matrix-stack/configs/synapse/synapse-04-homeserver-overrides.yaml.tpl b/charts/matrix-stack/configs/synapse/synapse-04-homeserver-overrides.yaml.tpl index bf2ee360..c35c453d 100644 --- a/charts/matrix-stack/configs/synapse/synapse-04-homeserver-overrides.yaml.tpl +++ b/charts/matrix-stack/configs/synapse/synapse-04-homeserver-overrides.yaml.tpl @@ -43,6 +43,8 @@ registration_shared_secret_path: /secrets/{{ database: name: psycopg2 args: +{{- /* We don't attempt to use passfile and mount the Secret directly due to +https://github.com/kubernetes/kubernetes/issues/129043 / https://github.com/kubernetes/kubernetes/issues/81089 */}} {{- if .postgres }} user: {{ .postgres.user }} password: ${SYNAPSE_POSTGRES_PASSWORD} diff --git a/newsfragments/881.internal.md b/newsfragments/881.internal.md new file mode 100644 index 00000000..14a6cea1 --- /dev/null +++ b/newsfragments/881.internal.md @@ -0,0 +1 @@ +Document why we don't use `passfile` for Synapse & MAS' Postgres configuration.