mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-06 20:59:07 -05:00
[GH-ISSUE #2092] ENV variables not taken if settings subsection defined #6864
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DevNinja90 on GitHub (Dec 16, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/2092
Describe the Bug
The defined env vars here Environment Variables
Currently these three ones
SERVER_SECRET| server.secretEMAIL_SMTP_PASS| email.smtp_passPOSTGRES_CONNECTION_STRING| postgres.connection_stringWill not be used or taken if any kind of config subsection e.g.
server,emailorpostgresis 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
To Reproduce
define some settings in config.yml for postgres and define the connection_string as env var.
Expected Behavior
both configs are respected
@oschwartz10612 commented on GitHub (Dec 16, 2025):
For the postgres string this is because of
pangolin/server/db/pg/driver.ts where it looks to only pull it if the
postgres section is not defined. I will fix that.
For the other two I think they should be overriding correctly but not
100% sure. Could you verify for me if they are actually failing?
@DevNinja90 commented on GitHub (Dec 17, 2025):
Can confirm the others still work. Thanks!