Skip to content

LAN pairing: client key, setup pairs over USB, lan-clients - #83

Merged
wardviaene merged 3 commits into
mainfrom
lan-pairing
Nov 20, 2026
Merged

wardviaene merged 3 commits into
mainfrom
lan-pairing

Conversation

@wardviaene

Copy link
Copy Markdown
Member

For firmware 4.0.1 LAN pairing (embeddedci-com/benchpod-firmware#209).

  • One TLS client identity per user: client.key/client.crt next to known_pods.json, made on first use, shared with the SDK. BENCHPOD_CLIENT_KEY_PEM or BENCHPOD_CLIENT_CERT/_KEY for CI. Presented on every 8443 connection.
  • setup pairs this computer in step 1 over the USB console (works with the USB network off) and pins the pod's LAN certificate from USB. A pod only on the network is paired through embeddedci.com when it is on your account; otherwise setup says to plug in USB-C once.
  • lan-clients [add [--new-key --name] | remove | clear], lan-pairing [on|off]. discover shows paired / not paired.
  • BP0081 lan_not_paired is a Locked refusal. Catalog and feature map synced.
  • Separate commit: setup --connection usb:<name> now picks that pod when several are on USB (it filtered by device path only).

Tested on benchpod-30a9f1 with the dev firmware: setup from a fresh config pairs in step 1 and then works over LAN TLS; lan-clients over the console, the USB link and the cloud; a change from the LAN is refused (BP0041). The usb: fix checked with two pods on USB. go test ./... passes.

🤖 Generated with Claude Code

wardviaene and others added 3 commits November 20, 2026 16:00
…lients

- tcpclient: one TLS client identity per user (client.key/client.crt next
  to known_pods.json, made on first use; BENCHPOD_CLIENT_KEY_PEM or
  BENCHPOD_CLIENT_CERT/_KEY for CI), presented on every 8443 connection.
- setup: pairs this computer in step 1 over the USB console (works with the
  USB network off) and pins the pod's LAN certificate from USB; a pod only
  on the network is paired through embeddedci.com when it is on your
  account, else setup says to plug in USB-C once.
- lan-clients [add [--new-key --name] | remove | clear], lan-pairing.
- discover: "paired" / "this computer is not paired".
- BP0081 lan_not_paired is Locked; catalogs synced from the firmware.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
setup filtered the USB pods by device path only, so usb:<name> with two pods
plugged in stopped with "found 2 BenchPods". The probe now keeps each pod's
identity short id and setup matches it (benchpod-<id> too); an unknown name
lists the pods it found.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wardviaene
wardviaene merged commit 133dfd8 into main Nov 20, 2026
2 checks passed
@wardviaene
wardviaene deleted the lan-pairing branch November 20, 2026 22:04
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