ENV variables not taken if settings subsection defined #481

Closed
opened 2026-04-05 17:12:18 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @DevNinja90 on 12/16/2025

Describe the Bug

The defined env vars here Environment Variables

Currently these three ones

SERVER_SECRET | server.secret
EMAIL_SMTP_PASS | email.smtp_pass
POSTGRES_CONNECTION_STRING | postgres.connection_string

Will not be used or taken if any kind of config subsection e.g. server, email or postgres is defined in the settings fine (config.yml)

E.g. i want to define the postgres pool settings in the config.yml but the connection_string inside my secret (k8s deployment). Then the env var is skipped as a section of the subsettings is defined in my config.yml

Verified with the postgres section, but i think this applies to all of them. 😉

Might also apply to gerbil, but not tested.

Environment

  • OS Type & Version: (k8s deployment)
  • Pangolin Version: 1.13.1

To Reproduce

define some settings in config.yml for postgres and define the connection_string as env var.

Expected Behavior

both configs are respected

*Originally created by @DevNinja90 on 12/16/2025* ### Describe the Bug The defined env vars here [Environment Variables](https://docs.pangolin.net/self-host/advanced/config-file#environment-variables) Currently these three ones `SERVER_SECRET `| server.secret `EMAIL_SMTP_PASS `| email.smtp_pass `POSTGRES_CONNECTION_STRING `| postgres.connection_string Will not be used or taken if any kind of config subsection e.g. `server`, `email `or `postgres` is defined in the settings fine (config.yml) E.g. i want to define the postgres pool settings in the config.yml but the connection_string inside my secret (k8s deployment). Then the env var is skipped as a section of the subsettings is defined in my config.yml Verified with the postgres section, but i think this applies to all of them. 😉 Might also apply to gerbil, but not tested. ### Environment - OS Type & Version: (k8s deployment) - Pangolin Version: 1.13.1 ### To Reproduce define some settings in config.yml for postgres and define the connection_string as env var. ### Expected Behavior both configs are respected
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#481