DEV Community

CitizenK
CitizenK

Posted on

1

Airflow UI with Role-Based Access Control

This is the continuation to the previous article on the Apache Airflow Installation

To set up the Access control on the Airflow UI:

a. Update the Configuration file
airflow.cfg file (should be available in ~/airflow/ directory) with the below entry.

rbac = True

b. run the below on your terminal

airflow

the above step will create webserver_config.py file in your $AIRFLOW_HOME location.

most probably, you do not have to make any changes to the webserver_config.py file. If you want to make changes, please refer Authentication section of FAB docs.

Now, run the below commands on the terminal

c. run airflow initdb
d. run airflow create_user -r 'admin' -u '' -e '' -f '' -l ''

e. now this will prompt you to enter the password for the user.

Start/Restart the airflow webserver, scheduler, worker.

tattadaa...

Launch the airflow UI url, you will see the Login Screen!

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more