Skip to content

Commit

Permalink
Add description about secret_key when Webserver > 1 (apache#15546)
Browse files Browse the repository at this point in the history
when running more than 1 intances of websever, make sure all of them use the same ``secret_key`` otherwise one of them will error with "CSRF session token is missing".

closes apache#15532
  • Loading branch information
kaxil authored Apr 27, 2021
1 parent 5b2fe0e commit dfaaf49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions airflow/config_templates/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -993,8 +993,9 @@
default: "False"
- name: secret_key
description: |
Secret key used to run your flask app
It should be as random as possible
Secret key used to run your flask app. It should be as random as possible. However, when running
more than 1 instances of webserver, make sure all of them use the same ``secret_key`` otherwise
one of them will error with "CSRF session token is missing".
version_added: ~
type: string
sensitive: true
Expand Down
5 changes: 3 additions & 2 deletions airflow/config_templates/default_airflow.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,9 @@ worker_refresh_interval = 6000
# then reload the gunicorn.
reload_on_plugin_change = False

# Secret key used to run your flask app
# It should be as random as possible
# Secret key used to run your flask app. It should be as random as possible. However, when running
# more than 1 instances of webserver, make sure all of them use the same ``secret_key`` otherwise
# one of them will error with "CSRF session token is missing".
secret_key = {SECRET_KEY}

# Number of workers to run the Gunicorn web server
Expand Down

0 comments on commit dfaaf49

Please sign in to comment.