-
Notifications
You must be signed in to change notification settings - Fork 51
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
Allow configuring sources/destinations e.g. with YAML #4
Comments
Thanks for the comment, although I must say I am a bit skeptical to the idea. One of the things that I intend to keep with ingestr is its opinionated simplicity, and having various file-based configuration or extra flexibility may go against that. I'll give it a thought, and if you have ideas about how a source file could look like or CLI options would behave I'd be happy to read. |
My idea is to support both.
So the current behavior of your tool would stay the same. Regarding the config format - well, you could be inspired by the dbt profiles file. |
One more comment - specifying credentials in the URL is dangerous. |
Agreed. At least the password (or full URI) should come from a file (ideally) or environmental variable. If you put the password in an argument it will be viewable by all users on the system and saved in shell history. |
The URIs are already supported as env variables: https://github.com/bruin-data/ingestr/blob/main/ingestr/main.py#L80 In fact, I am of the opinion that env variables are far more suitable than having files also for ephemeral environments, e.g. github actions. I am not 100% sold on the idea that we need file-based configuration, but I am not strongly against either, I just don't see it as a priority. Just to be clear: I don't see us supporting dbt-profiles since it's a platform that we do not have any influence over, therefore if we do support file-based configuration it'll be something specific to ingestr. It can be heavily inspired -or even the same, for that matter- as dbt profile definitions, but they'll evolve separately, and I would rather not play catch-up with that definition. |
I agree regarding ENV vars, I use them heavily in Gitlab CI/GitHub actions.
That's sufficient for me now. |
not sure if that's clear to you, but you can do what you are suggesting today already with ingestr. does that help? |
That's what I tried to tell in my last comment: |
Even we could implement readers for 3rd party configurations.
Personally, I implemented a reader for dbt profiles and can contribute with it to this project.
The text was updated successfully, but these errors were encountered: