From 127c8cb69fd0e6421ca1559866b2629de9a91af1 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Wed, 28 Sep 2022 20:29:48 +0100 Subject: [PATCH 1/2] chore: document postgres.noPasswordEnv --- guides/deployments/postgres.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/guides/deployments/postgres.md b/guides/deployments/postgres.md index 5ed264cc7..7a5c8a944 100644 --- a/guides/deployments/postgres.md +++ b/guides/deployments/postgres.md @@ -44,6 +44,14 @@ or cluster. the console, to avoid inadvertently storing credentials in shell history files. + > Normally, we set the PostgreSQL password as an environment variable in the + > `coderd` deployment with a reference to the Kubernetes secret. If this is + > not desirable, you can instead mount the secret as a file which Coder will + > read at startup. To do this, set the Helm value `postgres.noPasswordEnv` to + > `true`. This will mount the secret under + > `/run/secrets/<.Values.postgres.passwordSecret>/password` and set the + > environment variable `DB_PASSWORD_PATH` for `coderd`. to that value. + 1. Get the port number for your PostgreSQL instance: ```sql From ee76b571219f7b8c0bac86688797b7d8bc67393a Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Wed, 28 Sep 2022 20:33:09 +0100 Subject: [PATCH 2/2] fixup! chore: document postgres.noPasswordEnv --- guides/deployments/postgres.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/deployments/postgres.md b/guides/deployments/postgres.md index 7a5c8a944..fbf620af2 100644 --- a/guides/deployments/postgres.md +++ b/guides/deployments/postgres.md @@ -50,7 +50,7 @@ or cluster. > read at startup. To do this, set the Helm value `postgres.noPasswordEnv` to > `true`. This will mount the secret under > `/run/secrets/<.Values.postgres.passwordSecret>/password` and set the - > environment variable `DB_PASSWORD_PATH` for `coderd`. to that value. + > environment variable `DB_PASSWORD_PATH` for `coderd` to that value. 1. Get the port number for your PostgreSQL instance: