How do I disable Airflow login for authentication and authorization? How do I disable Airflow login for authentication and authorization? flask flask

How do I disable Airflow login for authentication and authorization?


If anyone is using docker, this worked for me(airflow 2.0.1):

  1. Add a copy of webserver_config.py somewhere in your project.
  2. Uncomment AUTH_ROLE_PUBLIC and set 'Admin' as the value.
AUTH_ROLE_PUBLIC = 'Admin'
  1. Add these settings to your .cfg file.
[webserver]rbac = Falseauthenticate = False
  1. In your Dockerfile, add the command to copy the webserver_config.py into the /home/airflow directory. e.g:
ADD airflow/webserver_config.py /home/airflow

Once you spin up the pod, config file should be appended to the directory disabling the authentication.


Change the authenticate value to false in airflow config file (airflow.cfg) and restart the airflow,

# Set to true to turn on authentication:# https://airflow.apache.org/security.html#web-authenticationauthenticate = False

RBAC,

rbac = False


One way is to disable the RBAC via an environment variable. Make sure you set the following before starting the webserver:

export AIRFLOW__WEBSERVER__RBAC=False

See here for more details.The other answers here will all work as well!