Skip to content

LAN pairing: client key, pair(), lan_clients() - #136

Merged
wardviaene merged 1 commit into
mainfrom
lan-pairing
Nov 20, 2026
Merged

wardviaene merged 1 commit into
mainfrom
lan-pairing

Conversation

@wardviaene

Copy link
Copy Markdown
Member

For firmware 4.0.1 LAN pairing (embeddedci-com/benchpod-firmware#209, CLI embeddedci-com/benchpod-cli#83).

  • transport/client_identity: this computer's TLS client key and self-signed certificate, the same files as benchpod (client.key/client.crt next to known_pods.json, made on first use). BENCHPOD_CLIENT_KEY_PEM, or BENCHPOD_CLIENT_CERT/_KEY, for CI. Every 8443 connection presents it.
  • BenchPod.pair(), lan_clients(add/remove/clear), set_lan_pairing(); LanClients/LanClient. Over USB, pair() pins the pod's LAN certificate for its LAN address.
  • The serial transport answers lan_clients and lan_tls through the console, so pairing works while the USB network adapter is off.
  • PodNotPairedError (BP0081, a PodLockedError); BP0082. Catalog and feature map synced.
  • New dependency: cryptography>=41, for key and certificate generation.

MCP and the desktop app pick this up through the SDK. Unit tests for the identity, the console parsing, paging and pair(); embeddedci 1227 passed, MCP 210 passed. Not run against a pod with the SDK itself: the firmware side was checked with the CLI and with Python ssl presenting a client certificate.

🤖 Generated with Claude Code

- transport/client_identity: this computer's TLS client key and
  self-signed certificate, shared with benchpod (client.key/client.crt next
  to known_pods.json, made on first use); BENCHPOD_CLIENT_KEY_PEM or
  BENCHPOD_CLIENT_CERT/_KEY for CI. Every 8443 connection presents it.
- BenchPod.pair(), lan_clients(add/remove/clear), set_lan_pairing();
  LanClients/LanClient. pair() over USB pins the pod's LAN certificate.
- The serial transport answers lan_clients and lan_tls through the console,
  so pairing works while the USB network adapter is off.
- PodNotPairedError (BP0081, a PodLockedError); BP0082. Catalog and
  feature map synced from the firmware.
- New dependency: cryptography>=41 (key and certificate generation).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wardviaene
wardviaene merged commit 3d0bd2a into main Nov 20, 2026
12 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