После изменения airflow.cfg, запустите команду «airflow webserver», произошла ошибка, как показано ниже:
File "/home/airflow/.pyenv/versions/3.7.3/lib/python3.7/site-packages/airflow/contrib/auth/backends/password_auth.py", line 33, in <module>
from flask_bcrypt import generate_password_hash, check_password_hash
ModuleNotFoundError: No module named 'flask_bcrypt'
...
File "/home/airflow/.pyenv/versions/3.7.3/lib/python3.7/site-packages/airflow/__init__.py", line 73, in load_login
raise AirflowException("Failed to import authentication backend")
airflow.exceptions.AirflowException: Failed to import authentication backend
Просто добавили содержимое в файл airflow.cfg.
[webserver]
authenticate = True
auth_backend = airflow.contrib.auth.backends.password_auth