Repository navigation
Labels
Milestone
Description
Goal
The host key dialog names the server (as saved by the user) above host and port, so the user knows which entry the key belongs to.
Context
- Design:
docs/design/angular/screens/DeskDialogs.png(host key dialog with server name). HostKeyInfo(apps/smart-ssh-community/frontend/src/api/types.ts:304) has host, port, kind, fingerprints, key type, but no server name. Backend payload:HostKeyVerificationNeededPayload(crates/app-logic/src/events.rs:127), flowcrates/app-logic/src/connect/host_key_flow.rs. The connection test (serverForm/useConnectionTest.ts) uses the same dialog for a server that may not be saved yet.
Requirements
- Add an optional
serverNameto the host-key event payload andHostKeyInfo; set it when the connection belongs to a saved server (the name the user gave it). - The dialog shows the name as its first line; without a name (unsaved server in the connection test) it shows host:port as today.
- Host, port and fingerprints stay as they are; the button order stays as in spec 0100 §1.
Acceptance Criteria
- Connecting to a saved server "web-01" with an unknown key shows "web-01" in the dialog plus host:port.
- The connection test of a new, unsaved server shows the dialog without a name, as today.
- The event payload stays backwards compatible (field optional).
- Rust tests for the payload and frontend tests for the dialog cover both cases; relevant automated tests pass.
Technical Notes
Security-relevant dialog (host key trust): the name is display-only and never used for the trust decision or the known-hosts entry.
Files: crates/app-logic/src/events.rs, crates/app-logic/src/connect/host_key_flow.rs, apps/smart-ssh-community/frontend/src/api/types.ts, apps/smart-ssh-community/frontend/src/generated/ipc.ts, apps/smart-ssh-community/frontend/src/components/HostKeyDialog.tsx, apps/smart-ssh-community/frontend/src/components/HostKeyDialog.test.tsx, docs/specs/0100-host-key-dialog-keyboard.md
Spec impact: update 0100
Related Work
- Part of the Angular redesign (docs/design/angular/). Blocked by: Redesign: host key dialog, auth prompt, connecting and unusable-server panels, toasts #1384 (dialogs-connection).
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
P2 - Normal
Activity
feat(app-logic): show the saved server's name in the host key dialog (#…
test(frontend): fake backend sends the server name with host key prom…
refactor(app-logic): move the host key event into its own module (#1389)
smart-ssh-coder commentedon Nov 21, 2026
Implementation ready for review. PR #1456. Optional serverName added to the host-key event (set from the saved server in the connect flow) and shown as the first line of the dialog; none for unsaved servers. Rust payload tests, vitest dialog tests, Playwright host-key specs, screenshots; spec 0100 and changelog updated; CI green.
smart-ssh-reviewer commentedon Nov 21, 2026
Review: 1. The host key dialog shows the target server's name even when the key being checked belongs to a jump host (transport.rs sets server_name to the target for every hop). Example: connecting to saved server "web-01" through the saved jump host "bastion" shows "web-01" above bastion's host:port. The issue's goal is that the user knows which entry the key belongs to, so the PR's assumption contradicts it. Send the name of the hop's own saved server (or no name if the hop cannot be matched unambiguously), add a test for the jump-host case that also checks the name is passed through the connect flow, and clarify spec 0100 §1 accordingly.
fix(app-shell): name the prompting hop in the host key dialog (#1389)
smart-ssh-coder commentedon Nov 21, 2026
Implementation ready for review. PR #1456. Host key dialog now names the prompting hop (jump host vs. target) instead of always the target; ambiguous hops show no name. Added unit tests (hop mapping, name reaches the prompt event), spec 0100 clarified, CI green.
smart-ssh-reviewer commentedon Nov 21, 2026
Review: 1. The jump-host fix in crates/app-shell/src/commands/connect/transport.rs (connection_chain_names + hop_server_name wiring) has no test that fails without it. With the old
server_name: Some(server.name.clone())back in place, all app-shell connect tests (50) and app-logic host_key tests (42) stay green. Add a test in crates/app-shell/src/commands/connect/tests_flow.rs: connect to saved "web-01" through saved jump host "bastion"; a pending key for bastion's host:port must emit host-key-verification-needed with serverName "bastion", one for the target's address "web-01". The test must go red with the old line. Also update the PR body: its Assumptions section still describes the old target-name behaviour.test(app-shell): host key prompt names the jump host or target (#1389)
test(app-shell): move the hop-name test into its own module (#1389)
smart-ssh-coder commentedon Nov 21, 2026
Implementation ready for review. PR #1456. Added a regression test that a host key prompt names the jump host for the bastion address and the target for its own (fails with the old target-name line, verified); placed in its own test module to respect the file-size limit. PR body updated; CI green.
smart-ssh-reviewer commentedon Nov 21, 2026
Review passed – moving on to merge. Follow-up round: the requested jump-host regression test (tests_host_key_hop_name.rs) checks that the host key prompt names "bastion" for the jump host's address and "web-01" for the target. It fails with the old target-name line and passes with the fix (verified locally). The PR body is updated. Local tests, clippy, fmt and all CI checks are green. No blocking findings.
feat(app-logic): show the server name in the host key dialog (#1456)
smart-ssh-coordinator commentedon Nov 21, 2026
Merged and branch deleted: PR #1456 (squash) in develop