Fleet TLS-only transport, piece 2: communicator-esp32 enforcement #17
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/fleet-tls-piece-2-esp32"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Piece 2 of the fleet TLS-only transport design: make the ESP32 firmware's realtime transport unconditionally TLS, so no build path can silently put the protocol on the wire unencrypted or without trust material.
main/ota_trust.h's tracked placeholder is now an#error(no empty CA can ever compile), andmain/CMakeLists.txtregenerates the header at configure time: production keys (tools/ota-keys/) when present, otherwise the shared dev set with aDEV TRUST MATERIALbanner.CONFIG_WS_TLSis deleted;main/ws_client.calways buildswss://with.transport = WEBSOCKET_TRANSPORT_OVER_SSLand the pinned CA.covers()reads the leaf's real SANs instead of trusting theMANIFEST(the piece-1 review's suggestion).tools/release_firmware.shrefuses dev-trust firmware (replaces the oldCONFIG_WS_TLS=yassertion).host/tests/test_tls_invariant.py) pins the source-level properties, complementing the build gate.Why
All three fleet repos shared one defect: TLS material optional, absence silently degrading to plaintext
ws://. On 2026-10-14 the attached ESP32 joined its network, got an IP, then died at the WebSocket upgrade because the flashed build spoke plaintext into awss://listener (closed with zero bytes — indistinguishable from a dead wake word).starfleet:docs/superpowers/specs/2026-10-14-fleet-tls-only-design.mdstarfleet:docs/superpowers/plans/2026-10-14-fleet-tls-piece-2-esp32-enforcement.mdVerification
idf.pybuilds, all three trust paths exercised and state restored:DEV TRUST MATERIALbanner, dev set at<workspace>/.dev-trust;CONFIG_SERVER_HOST→ configure prints the remedy and the build fails at the placeholder#error(RF1).SDKCONFIG).Not in this PR
computerandcommunicator-sailfishenforcement (pieces 3 and 4).AGENTS.md's server-side live-tap example still usesws://127.0.0.1(acomputer-side script; piece 3).