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!

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

Try REST API Generation for Snowflake

DevOps for Private APIs. Automate the building, securing, and documenting of internal/private REST APIs with built-in enterprise security on bare-metal, VMs, or containers.

  • Auto-generated live APIs mapped from Snowflake database schema
  • Interactive Swagger API documentation
  • Scripting engine to customize your API
  • Built-in role-based access control

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay