Skip to content

Conversation

@VladaZakharova
Copy link
Contributor

Previously, the async SFTPHook did not correctly honor the documented default of no_host_key_check=True.
Even when this flag was not provided in the connection extras, the hook would still try to resolve and use the default ~/.ssh/known_hosts file, which contradicted the documentation and caused errors in deferrable sensors when the file was missing.

This PR passed internal review by Google provider


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@VladaZakharova VladaZakharova changed the title Fix sftp async hoook Fix SFTPAsyncHook to set the default value of no_host_key_check according to documentation Aug 21, 2025
Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@potiuk potiuk merged commit 0597df5 into apache:main Aug 21, 2025
74 checks passed
@potiuk
Copy link
Member

potiuk commented Aug 21, 2025

Side comment: I HATE when flags start with "no_" ... This makes it so difficult to reason about the logic !

@VladaZakharova
Copy link
Contributor Author

Side comment: I HATE when flags start with "no_" ... This makes it so difficult to reason about the logic !

agree! so much trouble with them to actually understand what they mean....

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants