Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion: make loading config from env optional #418

Open
schwarzkopfb opened this issue Dec 28, 2022 · 1 comment
Open

suggestion: make loading config from env optional #418

schwarzkopfb opened this issue Dec 28, 2022 · 1 comment
Labels
good first issue Good for newcomers

Comments

@schwarzkopfb
Copy link

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?

@canac
Copy link

canac commented Jan 8, 2023

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

@bombillazo bombillazo added the good first issue Good for newcomers label Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants