The GitHub Actions job "Tests (ARM)" on airflow.git/main has succeeded.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
120dbed3462cedcb980aac022c587ba434249eb1 / Jarek Potiuk <[email protected]>
Add `host_key_policy` option to `ComputeEngineSSHHook` (#66746)

* Add host_key_policy option to ComputeEngineSSHHook

Exposes paramiko's `MissingHostKeyPolicy` choice as a constructor
argument so callers can opt into strict host-key verification on the
SSH transport. The argument accepts the string aliases `"auto_add"`,
`"reject"` and `"warning"` (which map to the matching `paramiko`
policy classes) and also passes through any custom
`paramiko.MissingHostKeyPolicy` instance — so a caller that wants to
pin the remote host's key from GCE guest attributes / instance
metadata can plug in a policy that loads it on the fly.

The default is `"auto_add"`, preserving the historical behaviour of
this hook; no migration is required for existing callers. The
previous inline comment claiming the missing host-key check was
unrelated to the local private key is removed — it conflated two
different concerns and is replaced with a pointer to the new
constructor argument.

Generated-by: Claude Opus 4.7 (1M context) following the guidelines at
https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

* Address review: docstring, ValueError chaining, top-level paramiko import

@shahar1 review on PR #66746:

* Add :param host_key_policy: to the ComputeEngineSSHHook docstring so
  users see the option without reading the source.
* Fix the _resolve_host_key_policy() docstring to say ValueError (matches
  what is actually raised) instead of AirflowException.
* Re-raise the unknown-policy ValueError with from None so the KeyError
  implementation detail doesn't leak into the chained traceback.
* Move 'import paramiko' to module top in test_compute_ssh.py; the
  function-local imports were unnecessary now that the test class is
  permanent.

Report URL: https://github.com/apache/airflow/actions/runs/25837647901

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to