konosp / dbt-airflow-docker-compose

Execution of DBT models using Apache Airflow through Docker Compose

Home Page:https://analyticsmayhem.com/dbt/apache-airflow-dbt-docker-compose/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

airflow's configuration file

raavioli opened this issue · comments

I just started playing with this and encountered minor issue which i was able to over come , may be you can mention in your set up/readme file.

the secret_key is a Flask setting which is used to keep client sessions secure. The Airflow documentation however doesn't really mention it (even in the Security section), nor that it should be changed from the default of temporary_key. It should be changed to a random key of your choice.

You can generate it with the Python command shown in the Flask docs: python -c 'import os; print(os.urandom(16))'

Or, since the secret_key may be in unicode, you can use any online key generator to create one, or just enter some random string of letters and numbers.

Generate the key and copy-paste into your airflow.cfg, restarting the Airflow webserver afterwards.

https://serverfault.com/questions/947745/in-airflows-configuration-file-airflow-cfg-what-is-the-secret-key-and-do-i