SSH transport, multi-node client, key authentication (replaces HTTP) #2

Merged
laurent merged 5 commits from feat/ssh-transport into main 2026-11-08 16:23:48 +01:00
Owner

Replaces the HTTP transport with an embedded SSH server (russh), authenticates by public key, and adds a multi-node client that aggregates nodes behind one MCP stdio surface.

  • gilfoyle-ssh: russh server, key-only auth, gilfoyle-mcp subsystem; refuses shell/exec/pty/forwarding; pure auth/channel policy.
  • gilfoyle-server: SSH config (bind, host_key, keys with per-key tool grants), ssh keygen; HTTP/bearer/axum removed.
  • gilfoyle-client: multi-node aggregator (node argument, list_nodes, read fan-out, host-key pinning, session pool, reconnect + read retry, tools/list_changed).
  • Docs: ADR 0005/0006, GLOSSARY, README, AGENTS, docs/INSTALL.md.
  • Quality: mutation 100% (218 mutants, 0 survivors), fuzzing green, SSH/MCP integration tests.
Replaces the HTTP transport with an embedded SSH server (russh), authenticates by public key, and adds a multi-node client that aggregates nodes behind one MCP stdio surface. - gilfoyle-ssh: russh server, key-only auth, gilfoyle-mcp subsystem; refuses shell/exec/pty/forwarding; pure auth/channel policy. - gilfoyle-server: SSH config (bind, host_key, [[keys]] with per-key tool grants), ssh keygen; HTTP/bearer/axum removed. - gilfoyle-client: multi-node aggregator (node argument, list_nodes, read fan-out, host-key pinning, session pool, reconnect + read retry, tools/list_changed). - Docs: ADR 0005/0006, GLOSSARY, README, AGENTS, docs/INSTALL.md. - Quality: mutation 100% (218 mutants, 0 survivors), fuzzing green, SSH/MCP integration tests.
- gilfoyle-ssh: russh server, key-only auth, gilfoyle-mcp subsystem, refusals,
  pure auth/channel policy, host-key generation, end-to-end transport tests
- gilfoyle-server: SSH config (bind/host_key/[[keys]] with tool grants),
   subcommand, per-key service factory; HTTP, bearer tokens and
  axum/tower-http/sha2/subtle removed
- gilfoyle-client: multi-node aggregator over stdio (node argument, list_nodes,
  read fan-out, host-key pinning, session pool)
- docs: README, AGENTS, GLOSSARY, ADR 0005/0006, ADR 0001 amendment
- quality: fuzz targets (authorized_key, client_config), mutation exclusions
- gilfoyle-ssh: keep the server's RunningService alive for the channel's
  lifetime (sessions were being closed right after initialize)
- gilfoyle-client: reconnect a node on demand, retry reads once (mutations
  never), fan out reads across nodes concurrently, send
  notifications/tools/list_changed, and keep down nodes visible in list_nodes
- add a client<->node end-to-end integration test (pool, host-key pinning)
- server: in-memory MCP integration test exercising list_tools, the five tools,
  job results and per-key tool gating (restores mcp.rs coverage lost with HTTP)
- client: proxy integration test (node enum schema, routing, unknown/missing
  node, list_nodes, read fan-out, list_changed notification, server identity)
- ssh: test AuthorizedKeys::len with two keys; bound the SSH integration test
  with a timeout so a broken subsystem fails fast instead of hanging
- mutants.toml: exclude the read-only retry guard (needs fault injection)
A node that accepts the SSH channel but refuses the subsystem would leave
serve_client waiting forever. The 5s handshake timeout turns that into a clear
error (and lets the mutation gate fail fast instead of timing out).
- docs/INSTALL.md: fresh install (with the host-key ownership fix), migration
  from the old HTTP/bearer build, client setup, and a prompt for an install agent
- README/AGENTS: point to it and fix the quickstart and client-config notes
laurent changed title from Draft: SSH transport, multi-node client, key authentication (replaces HTTP) to SSH transport, multi-node client, key authentication (replaces HTTP) 2026-11-08 16:23:47 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
laurent/gilfoyle!2
No description provided.