How to activate authentication in Apache Airflow

后端 未结 3 664
耶瑟儿~
耶瑟儿~ 2021-02-05 19:49

Airflow version- 1.9.0

I have installed apache airflow and post configuration i am able to run sample DAG\'s with sequential executor.

Also, created new sample u

3条回答
  •  猫巷女王i
    2021-02-05 20:35

    1. edit airflow.cfg
      inside [webserver] section

      • change authenticate = True. by default it is set to False.
      • add auth_backend = airflow.contrib.auth.backends.password_auth.
      • change rbac = True for Role-based-access-control – RBAC.
    2. airflow initdb

    3. restart airflow webserver

提交回复
热议问题