Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide/mask sensitive data from airflow connections and variable section?

Tags:

python

airflow

We have many AWS connection string in apache airflow and anyone can see our access keys and secret keys in airflow webserver connections section. How to hide or mask sensitive data in airflow webserver?

enter image description here

We have already enabled authentication true in airflow configuration so it won't allow unauthorized users. But I don't want to show my keys in web view.

like image 964
MJK Avatar asked Mar 28 '18 07:03

MJK


1 Answers

For the Airflow Variables section, Airflow will automatically hide any values if the variable name contains secret or password. The check for this value is case-insensitive, so the value of a variable with a name containing SECRET will also be hidden.

like image 67
Joy Peterson Avatar answered Nov 15 '22 07:11

Joy Peterson