uranusjr commented on code in PR #50895:
URL: https://github.com/apache/airflow/pull/50895#discussion_r2103593553


##########
task-sdk/src/airflow/sdk/execution_time/context.py:
##########
@@ -180,6 +181,8 @@ def _get_variable(key: str, deserialize_json: bool) -> Any:
                     import json
 
                     var_val = json.loads(var_val)
+                if isinstance(var_val, str):
+                    mask_secret(var_val, key)

Review Comment:
   Do we want to also mask e.g. list of str? `mask_secret` can handle that 
natively.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to