You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "hussein-awala (via GitHub)" <gi...@apache.org> on 2023/03/12 19:48:39 UTC

[GitHub] [airflow] hussein-awala commented on issue #30039: Sensitive variable not masked in task logs when containing URL encoded string

hussein-awala commented on issue #30039:
URL: https://github.com/apache/airflow/issues/30039#issuecomment-1465283924

   This is normal. When you load the variable via the method `Variable.get`, you will get a python string, then when you use it in the operator, Airflow considers it as a normal string.
   
   Could you try with jinja templating?
   ```python
   BashOperator(
       task_id="bash",
       bash_command="echo `{{ var.value.get('ABC_PASSWORD') }}`"
   )
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org