konosp / dbt-airflow-docker-compose

Execution of DBT models using Apache Airflow through Docker Compose
https://analyticsmayhem.com/dbt/apache-airflow-dbt-docker-compose/
Apache License 2.0
113 stars 52 forks source link

airflow's configuration file #2

Closed raavioli closed 3 years ago

raavioli commented 3 years ago

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