Skip to content

Resolve verified Hetzner SSH targets by server ID - #476

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

asselstine merged 1 commit into
mainfrom
feat/hetzner-ssh-discovery-20261127

Conversation

@asselstine

@asselstine asselstine commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Behavior

  • In Hetzner View servers → SSH commands, select a server from the live inventory. Save its independently verified Ed25519 fingerprint and non-root SSH account once; no IP address is entered.
  • ssh_exec accepts either an existing generic targetId or hetznerServerId. For the latter, resolve the current IPv4 address in the connected project using its live grant. No new permission switch. The guest still controls acceptance of the client's public key.
  • A mismatch stops before running a command, closes the transport, and marks that pin as requiring verification. Do not accept a replacement key silently. Project replacement clears project-bound pins without changing client key pairs. Generic targets and legacy probes retain their existing behavior.

Verification

API TypeScript, the app production build, API boundaries, and generated OpenAPI, client, and docs checks passed. Added a PostgreSQL/MCP regression covering project grant, address changes, a mismatch, fail-closed retries, and explicit re-verification; extended the browser case for selecting an existing server and saving a pin. The focused PostgreSQL/MCP suites (3 tests), workerd SSH runtime test, and Hetzner Playwright case all passed on the reused Fly machine. Full GitHub CI and the live-provider smoke test are pending. This change does not provision a server or implement first-boot verification for new servers.

@asselstine
asselstine merged commit bc5e11f into main Nov 27, 2026
6 checks passed
@asselstine
asselstine deleted the feat/hetzner-ssh-discovery-20261127 branch November 27, 2026 22:35
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