Skip to content

Ensure check-host-key returns host key from the actual host being checked, not from first jump host - #2413

Closed
EdMcBane wants to merge 1 commit into
warp-tech:mainfrom
optionfactory:main
Closed

Ensure check-host-key returns host key from the actual host being checked, not from first jump host#2413
EdMcBane wants to merge 1 commit into
warp-tech:mainfrom
optionfactory:main

Conversation

@EdMcBane

Copy link
Copy Markdown

Description

When resolving the ssh chain, track the target_id for each host, and feed it back into the raised HostKeyReceived / HostKeyUnknown RCEvents, so that the procedure can match the one for the actual check target and break out only for it.
Fixes #2412

The implementation can be improved, I'm not too fond of having the target_id being a tuple field in multiple places.
Firing this off so it can receive review and feedback before being finalized.

AI Usage

Choose the level of AI involvement for this PR.

  • Fully vibe coded
  • AI-designed, AI-coded, manually checked
  • Human-designed, AI-coded
  • Human-designed, human-coded (includes AI autocompletions and boilerplate gen)

@Eugeny

Eugeny commented Aug 16, 2026

Copy link
Copy Markdown
Member

Thank you for the PR! Parts of the infrastructure for it have already landed in parallel as a fix for GHSA-w9jj-vpw3-5r8f and I wasn't able to push to your branch, so I've moved my remaining fix into #2437 and close this one

@all-contributors add @EdMcBane for code

@allcontributors

Copy link
Copy Markdown
Contributor

@Eugeny

I've put up a pull request to add @infrastructure! 🎉

@Eugeny

Eugeny commented Aug 16, 2026

Copy link
Copy Markdown
Member

@all-contributors add @EdMcBane for code

@allcontributors

Copy link
Copy Markdown
Contributor

@Eugeny

I've put up a pull request to add @EdMcBane! 🎉

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.

Check-host-key returns host key from first jump_host if in use

2 participants