We are masking variables that has sensitive values using Airflow masking using following code.
from airflow.utils.log.secrets_masker import mask_secret
We are then passing these masked variables as op_kwargs to callable function in PythonOperator.
This secures (masked as ***) the value in “op_kwargs” in “Rendered Template” in Airflow UI. However the values are clear in “Task Instance Details”.
Please suggest how can we mask the value in Task instance.