Repository navigation
LAN API over TLS: SDK pinning, lan_tls methods, MCP lan_tls tool - #45
Merged
Merged
Conversation
…n_tls tool The TCP transport connects to 8443 with TLS when the pod has it (firmware 3.9.3+): default port tries TLS first and falls back to plaintext only when 8443 refuses and nothing is pinned; :8443 is TLS only; other ports and the USB link stay plaintext. Pins live in the CLI's known_pods.json (same format), TlsPinMismatchError on a changed certificate, BENCHPOD_TLS / BENCHPOD_TLS_CA. BenchPod.lan_tls/set_lan_tls_https_only/regenerate_lan_tls/set_lan_tls_cert (upload as OTA target tls on one connection: TcpTransport.command_sequence), trust_lan_tls/forget_lan_tls, LanTls. MCP: lan_tls tool. READMEs and changelogs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One SSLContext per CA mode and the last session per pod address: later connections resume in ~35 ms instead of a ~0.46 s full handshake (HW, a1f6f2). A pin change drops the sessions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Release prep for the LAN TLS work; not tagged. The MCP server's lan_tls tool needs the SDK's LanTls and lan_tls methods, so its minimum SDK moves to 2.13.2 (mcp-min-sdk tests the in-repo SDK until 2.13.2 is on PyPI). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wardviaene
marked this pull request as ready for review
October 16, 2026 16:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SDK + MCP side of benchpod-firmware#55 (LAN API over TLS on 8443, firmware 3.9.3) and benchpod-cli#41.
transport/tls.py+TcpTransport: default port tries TLS on 8443 first, plaintext only when 8443 refuses and nothing is pinned (old pods keep working);:8443TLS only; other ports and the USB link plaintext.BENCHPOD_TLS,BENCHPOD_TLS_CA.last_tls,command_sequence().~/.config/benchpod-cli/known_pods.json, same format as the CLI.TlsPinMismatchError,trust_lan_tls(),forget_lan_tls().BenchPod.lan_tls(),set_lan_tls_https_only(),regenerate_lan_tls(),set_lan_tls_cert()(OTA targettlson one connection),LanTls.lan_tlstool; README TLS paragraph.Tests: SDK 686 passed, MCP 161, OpenHTF 74 (new: plan rules, TOFU/mismatch/re-trust against a local TLS server, shared pin format). HW-tested, see below. Versions not bumped (release step).
🤖 Generated with Claude Code
Hardware test (benchpod-a1f6f2, 2026-10-16, Ethernet + USB, no Wi-Fi)