Skip to content

Main sync: known_hosts mismatch diagnostics (closes the 2026-09-22 live-use audit item) - #7

Merged
im-tyler merged 2 commits into
mainfrom
sync/knownhosts-20260922
Sep 23, 2026
Merged

im-tyler merged 2 commits into
mainfrom
sync/knownhosts-20260922

Conversation

@im-tyler

Copy link
Copy Markdown
Contributor

Hash-preserving sync of Forgejo main (same flow as #5/#6). The branch exists on both remotes so the Forgejo->GitHub push-mirror cannot prune it mid-flight.

  • 078f610 fix(ssh): host-key mismatches name presented + on-file key algorithms
  • dace006 docs(audit): close known_hosts algorithm-coverage item

The raw knownhosts mismatch error names neither the algorithm the server
presented nor what known_hosts holds, so a file scanned with a single
algorithm (ssh-keyscan -t ed25519) reads as a MITM alarm when the
connection negotiates a different algorithm. Both callback paths
(default and accept-new) now wrap mismatches with the host, presented
type, on-file types and the scan-without--t remediation. Failing closed
is unchanged; the wrap still unwraps to *knownhosts.KeyError.
@im-tyler
im-tyler merged commit dace006 into main Sep 23, 2026
1 check passed
@im-tyler
im-tyler deleted the sync/knownhosts-20260922 branch September 23, 2026 00:14
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.

1 participant