You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/12/01 20:44:10 UTC

[GitHub] [airflow] ashb commented on a change in pull request #12747: Ensure webserver isn't running with old config

ashb commented on a change in pull request #12747:
URL: https://github.com/apache/airflow/pull/12747#discussion_r533709187



##########
File path: airflow/cli/commands/webserver_command.py
##########
@@ -317,6 +317,19 @@ def webserver(args):
     """Starts Airflow Webserver"""
     print(settings.HEADER)
 
+    # Check for old/insecure config, and fail safe (i.e. don't launch) if the config is wildly insecure.
+    if conf.get('webserver', 'secret_key') == 'temporary_key':
+        from rich import print as rich_print
+
+        rich_print(

Review comment:
       We don't have `rich` in 1.10, so should just use normal print there.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org