Repository navigation
|
I signed up for an OpenWeather key. Should it go in the DAG file, in |
Replies: 1 comment
|
Never in the DAG file. Two safe options, and they are used for slightly different reasons: Airflow connection (preferred for this project). Store the key as the password (or in the
A couple of things worth doing regardless:
|
Never in the DAG file. Two safe options, and they are used for slightly different reasons:
Airflow connection (preferred for this project). Store the key as the password (or in the
extrafield) of the HTTP connection the DAG uses. Airflow encrypts connection secrets with its Fernet key, the value never touches your working tree, and the same DAG code then works unchanged in production where the connection is provisioned by whatever secrets backend you use..env(fine for local tutorial runs). Copy.env.exampleto.envand fill in the key. This is why.envis in.gitignore— the file is meant to stay on your machine only.A couple of things worth doing regardless:
git check-ign…