Skip to content

ENV variables not taken if settings subsection defined #2092

@DevNinja90

Description

@DevNinja90

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions