Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Aug 2, 2025

(cherry picked from commit 93ba1c5)

Co-authored-by: Ash Berlin-Taylor ash@apache.org

…an error (#54046)

(cherry picked from commit 93ba1c5)

Co-authored-by: Ash Berlin-Taylor <ash@apache.org>
@ashb
Copy link
Member

ashb commented Aug 2, 2025

@potiuk curious. This passed on main but failed on back port

@potiuk
Copy link
Member

potiuk commented Aug 2, 2025

@potiuk curious. This passed on main but failed on back port

Interesting

@potiuk
Copy link
Member

potiuk commented Aug 2, 2025

 Error was: AttributeError: 'str' object has no attribute 'to_dict'

@potiuk
Copy link
Member

potiuk commented Aug 2, 2025

Looks like #53047 should be cherry-picked as well. Seems that mypy already found the path that of running to_dict() on string that @gopidesupavan fixed in #53047

@potiuk
Copy link
Member

potiuk commented Aug 2, 2025

I think few more changes for typing should be cherry-picked too.. Interesting thing that it actually revealed a case that potentially secrets could be revealed without bad input - by bug in our code BTW :)

@ashb
Copy link
Member

ashb commented Aug 2, 2025

Hmmmm, looking at the code and the test it "should" be fine, that hasattr check shouldn't be needed.

@ashb
Copy link
Member

ashb commented Aug 2, 2025

It's a bad test is why --

with patch("airflow.sdk.execution_time.secrets_masker._is_v1_env_var", return_value=True): is always returning true, even when it's called with a plain string.

@ashb ashb merged commit b1a74ea into v3-0-test Aug 2, 2025
54 checks passed
@ashb ashb deleted the backport-93ba1c5-v3-0-test branch August 2, 2025 13:11
@potiuk
Copy link
Member

potiuk commented Aug 2, 2025

Ah.. Cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants