Skip to content

suggestion: make loading config from env optional #418

Open

Description

@schwarzkopfb

When I add the project as a dependency, it'll require env var access for PGAPPNAME, PGDATABASE, PGHOST, PGOPTIONS, PGPASSWORD, PGPORT, PGUSER regardless I prefer to use this way of providing configuration or not. I consider allowing access to all env vars via --allow-env as a security risk and runnig with --allow-env=PGAPPNAME,PGDATABASE,PGHOST,PGOPTIONS,PGPASSWORD,PGPORT,PGUSER is pretty unconvinient.

So WDYT about considering a way to opt-out from auto-config via env vars?

Activity

  1. canac commented on Jan 8, 2023

    @canac

    I agree! I would love to be able to turn off trying to read the config from environment variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions