Skip to content

The broker remotes through ssh: a bundle ensures the subgraph-runner is present, the subgraph is present, and it runs under the account's credentials; the shipment back is to be determined #1160

Open

Description

@David-Noble-at-work

Problem

The owner, 2026-10-23: "when we come to remoting, we rely on ssh. I do not want to worry about installing brokers on every machine i touch. ssh is the gold standard for that sort of thing. It's installed or can be installed everywhere and typically is." Then, on what that means: "I'm talking about the subgraph runner. we will remote through the broker using ssh. this means have a bundle that we can ship over the wire that ensure the graph runner is present (meaning that we can install it on any device), the subgraph is present, and we can execute under the account credentials. The shipment back is to be determined."

2.7 § The remote leg (2026-10-21, 2026-10-22) has the remote leg as the broker's HTTP/2 API over TLS with a token, to a broker on the far machine, and SSH "at most a tunnel or a bootstrap".

Solution

The broker remotes through ssh. What it ships to the far machine is a bundle that ensures three things there:

  1. The subgraph-runner is present: installed on the device if it is not, so any machine ssh reaches can run a logon subgraph;
  2. The subgraph is present: the posted logon subgraph, re-rooted as a graph;
  3. It executes under the account's credentials: the account the logon names.

No broker is installed on the far machine.

Open

Evidence of completion

  • A logon subgraph for another host runs there from a bundle shipped over ssh, with the runner installed if absent, under the account's credentials, and no broker installed on that host

Plan and design documents

Kind Document
Plan Not yet opened
Design docs/architecture/2.7-control-plane.md § The remote leg

Activity

  1. changed the title [-]The remote leg is ssh: a logon subgraph for another host runs there through ssh to the account, the subgraph-runner on the far side, no broker installed[/-] [+]The broker remotes through ssh: a bundle ensures the subgraph-runner is present, the subgraph is present, and it runs under the account's credentials; the shipment back is to be determined[/+] on Oct 24, 2026
  2. David-Noble-at-work commented on Oct 24, 2026

    @David-Noble-at-work
    ContributorAuthor

    Ruled 2026-10-24 (#1159's plan, ruling 11 and outstanding questions 2 and 5): how to reach a host, its user, key, port and jump host, is the user's ~/.ssh/config, which writ already deploys from the personal layer; devlore names the host by its SSH alias and does not own that file. Recommended, for ruling: the system's OpenSSH client, run through the command provider, rather than Go's x/crypto/ssh, which reads no configuration; ssh -G <host> gives a host's resolved configuration when devlore needs it. The fd 3 channel over SSH stays with the shipment back.

  3. David-Noble-at-work commented on Oct 25, 2026

    @David-Noble-at-work
    ContributorAuthor

    Ruled 2026-10-25: the SSH client and how a host's configuration is read

    These settle #1159's outstanding questions 2 and 5, and 2.7 § Open 18. They are recorded here until a documentation change writes them into 2.7, 6.2 and #1159's plan.

    1. The client is Go's SSH package, golang.org/x/crypto/ssh (question 2, option 1). One connection carries the session and a channel of our own for OpenTelemetry, on every platform including Windows. The far executor exports OTLP over that channel, and the app side forwards it to the Collector named by OTEL_EXPORTER_OTLP_ENDPOINT. Events stay off the request's reply path.
    2. A host's configuration is what ssh -G <host> prints (question 5). It reads the user's SSH configuration, applies Include, Match, wildcards and defaults exactly as ssh would, prints the result, and connects to nothing. Devlore dials with those values, x/crypto/ssh/agent for the agent and x/crypto/ssh/knownhosts for the host keys. Chosen over a resolver of our own because it gives exactly what ssh would do, so the user meets no surprise. A setting the package cannot honour, such as ProxyCommand or Kerberos, is refused with an error naming it, never ignored.

    The configuration this gives

    • The connection is the user's SSH configuration, which devlore never writes.
    • The author names a host on the logon: plan.logon(account = "root", host = "media-server"), the host being an SSH host alias. The account is the one the far broker elevates to; the SSH login user comes from the configuration.
    • Devlore's own section holds only what SSH does not: where the bundle lands on the far machine, whether the executor is installed when absent, and the connect timeout, its defaults constructed in the section's floor (configuration.md).
    • Events use OpenTelemetry's standard environment.

    Still open

    • Whether a host needs a devlore setting of its own, such as another bundle path, or the section stays global.
    • The shipment back of the result and the trace (this issue).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions