How to activate authentication in Apache Airflow

后端 未结 3 632
耶瑟儿~
耶瑟儿~ 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条回答
  •  梦如初夏
    2021-02-05 20:28

    just add rbac = True to airflow.cfg, and you are good to go. Now all you need to is restart your airflow webserver. And in case if you want to add a new user. You can use this command,

     airflow create_user -r Admin -u admin -f Ashish -l malgawa -p test123 -e ashishmalgawa@gmail.com
    

    “-r” is the role we want for the user “-u” is the username “-f” is the first name “-l” is the last name “-e” is the email id “-p” is the password

    For more details, you can follow this article https://www.cloudwalker.io/2020/03/01/airflow-rbac-role-based-access-control/#:~:text=RBAC%20is%20the%20quickest%20way,access%20to%20DAGs%20as%20well

提交回复
热议问题