Airflow Web Authentication

My airflow version is v.1.10.1 and I am using python 3.5.2

I tried user._set_password but after looking at the users db table the password field is null…

After looking at the source, the following works for me.

from flask_bcrypt import generate_password_hash
user._password = generate_password_hash('your_password', 12)

Be sure to use SSL.

Ref:
https://airflow.apache.org/security.html
https://stackoverflow.com/questions/48075826/airflow-authentication-setups-fails-with-attributeerror-cant-set-attribute/48946256

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s