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

Environment variables beginning 'DB_' cause errors #5

Open
batearedcollie opened this issue Jan 31, 2025 · 0 comments
Open

Environment variables beginning 'DB_' cause errors #5

batearedcollie opened this issue Jan 31, 2025 · 0 comments

Comments

@batearedcollie
Copy link

Hi,

I discovered an issue where it looks like all environment variables beginning 'DB_' are interpreted as data base connection strings. This caused an issue on my system where the variable 'DB_ENPOINT' provides just the host name for the database server. Looking at the code on or around line 33 in engine.py looks like the area to focus on.

Would it possible to do one of the following?

1 - Provide a config option that specifies the environment variable prefix. So the user can choose somehting other than 'DB_'

2- Provide catch so that environment variables that might clash are filtered out

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant