Home > Software engineering >  Airflow UI: hide 'Task Instance Details', section 'Task Attributes', attribute &
Airflow UI: hide 'Task Instance Details', section 'Task Attributes', attribute &

Time:05-10

I would like to hide the field in Airflow UI: "Task Instance Details" -> Section "Task Attributes" -> Attribute "Env". I have some credentials stored in the envs. I cannot find the solution in Airflow documentation. Do anybody know how to hide the "env" attribute? Cheers.

CodePudding user response:

It is not possible in the current version (2.3.0) have the HIDE_ATTRS_FROM_UI hardcoded as a class attribute https://github.com/apache/airflow/blob/2.3.0/airflow/www/views.py#L1617 . Since I want to only hide the "env" attribute I just created .env file and put all the sensitive variables there and load the envs at the start of a Task script. The "env" attribute is still in Airflow UI but the sensitive data is not there anymore.

  • Related