Skip to content

Commit

Permalink
Fix using default secret key where AIRFLOW__WEBSERVER__SECRET_KEY is …
Browse files Browse the repository at this point in the history
…not set #3244
  • Loading branch information
greenape committed Nov 10, 2020
1 parent 935ae13 commit 2e0d6f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixed
- Reinstated tabs navigation in the docs [#3238](https://github.com/Flowminder/FlowKit/issues/3238)
- Removed `$` from code snippets in developer docs [#3224](https://github.com/Flowminder/FlowKit/issues/3224)
- FlowETL now randomly generates a secret ley to secure sessions with the web interface if one is not explicitly provided using `AIRFLOW__WEBSERVER__SECRET_KEY`. [#3244](https://github.com/Flowminder/FlowKit/issues/3244)

### Removed

Expand Down
1 change: 1 addition & 0 deletions flowetl/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ TRY_LOOP="20"
: "${AIRFLOW_HOME:="/opt/airflow"}"
: "${AIRFLOW__CORE__FERNET_KEY:=${FERNET_KEY:=$(python -c "from cryptography.fernet import Fernet; FERNET_KEY = Fernet.generate_key().decode(); print(FERNET_KEY)")}}"
: "${AIRFLOW__CORE__EXECUTOR:=${EXECUTOR:-Sequential}Executor}"
: "${AIRFLOW__WEBSERVER__SECRET_KEY:=${AIRFLOW__WEBSERVER__SECRET_KEY:=$(python -c "import os; print(os.urandom(16))")}}"

export \
AIRFLOW_HOME \
Expand Down

0 comments on commit 2e0d6f3

Please sign in to comment.