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

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

jurovee commented on issue #30039:
URL: https://github.com/apache/airflow/issues/30039#issuecomment-1465282119

   @hussein-awala I just checked on 2.5.1:
   
   ```
   >>> from airflow.models import Variable
   >>> Variable.get('ABC_PASSWORD')
   'w7.%40jp%295%24KCEvrR~'
   ```
   
   BashOperator Task
   command: `echo 'hello, password is w7.%40jp%295%24KCEvrR~'`
   
   Airflow logs from the task:
   
   ```
   [2023-03-12, 20:36:12 CET] {subprocess.py:75} INFO - Running command: ['/bin/bash', '-c', "echo 'hello, password is w7.%40jp%295%24KCEvrR~'"]
   [2023-03-12, 20:36:12 CET] {subprocess.py:86} INFO - Output:
   [2023-03-12, 20:36:12 CET] {subprocess.py:93} INFO - hello, password is w7.%40jp%295%24KCEvrR~
   [2023-03-12, 20:36:12 CET] {subprocess.py:97} INFO - Command exited with return code 0
   ```
   


-- 
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