enterprise-helm
enterprise-helm copied to clipboard
feat: add postgres.noPasswordEnv
This PR adds a Helm flag postgres.noPasswordEnv, defaulting to false.
If enabled:
- The environment variable
DB_PASSWORDis no longer set to the value of the keypasswordof the Kubernetes secret namedpostgres.passwordSecretfor containers in thecoderddeployment. - The Kubernetes secret named
postgres.passwordSecretis mounted under/run/secrets/{{ postgres.passwordSecret }}(~0400~ originally mounted0400butcoderdis unable to read this) - The environment variable
DB_PASSWORD_PATHis set to/run/secrets/{{ postgres.passwordSecret }}/passwordfor containers in thecoderddeployment.
Verification steps:
- [x] Validated that Helm deploy with defaults does not change behaviour
- [x] Validated that setting
postgres.noPasswordEnvin Helm values causes Coder to read the postgresql password from the file specified byDB_PASSWORD_PATH.