Skip to content

Run SSH commands with stable per-client keys - #475

Merged
asselstine merged 1 commit into
mainfrom
feat/client-ssh-exec-20261127
Nov 27, 2026
Merged

asselstine merged 1 commit into
mainfrom
feat/client-ssh-exec-20261127

Conversation

@asselstine

Copy link
Copy Markdown
Collaborator

What changes

  • Add get_ssh_public_key and ssh_exec for saved MCP clients. Preserve existing Ed25519 keys across OAuth grant rotation, reconnects, and Hetzner project replacement or deletion.
  • Keep provisioning on the native Hetzner API through request_api. The SSH server authorizes installed keys. The owner registers an independently verified address and non-root account. There is no second client permission toggle; legacy probe-only enrollments are unchanged.
  • Use a Durable Object for one outbound connection per client and verified target. Commands use separate, non-interactive channels, bounded output and deadlines. Close after 30 seconds idle and require reauthentication after at most two minutes.

Validation

  • On Fly: three targeted PostgreSQL tests (MCP key migration and rotation, native Hetzner proxy, legacy SSH enrollment), a real workerd SSH command-channel fixture, API TypeScript and boundary checks, hosting invariants, and generated contracts and docs. Also used loopback OpenSSH under workerd to verify reuse, output caps, and wrong-host-key rejection. Existing Fly machine was stopped.
  • Live MCP tool discovery and the Hetzner provision → pin → exec → cleanup smoke test are still pending deployment. No live server was provisioned and nothing was deployed.

@asselstine
asselstine merged commit 2c26722 into main Nov 27, 2026
2 checks passed
@asselstine
asselstine deleted the feat/client-ssh-exec-20261127 branch November 27, 2026 21:54
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