-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
How do you feel about putting hook configuration in airflow.cfg? #9
Comments
Are you concerned about the security aspect of storing connection information in a database, or is it more about deployment and how you get the information in there? If it's the later you could easily setup a simple script that populates the database. It would look like what's in It's true that I'd also rather have connection information in source control rather than in the db. Having it in the db is an artifact of early development. But it does work. I believe all of the connection info fetching is done through here: https://github.com/mistercrunch/airflow/blob/master/airflow/utils.py#L79 |
I'm more interested in the deployment / config management aspect of it. Writing a script to manage the db config would definitely be possible, but it's another moving part to write and test and make sure it handles config changes properly. |
For now your best bet is either a small python script or a one time manual entry. Ideally eventually running |
We distribute our configs via text files managed by puppet so it would be awkward to put that into the db for airflow. Would you accept a patch that looks for
conn_id
insettings.conf
before checking the database?The text was updated successfully, but these errors were encountered: