Repository navigation
Conversation
…elay Per-client topics in both directions, device and app client IDs, relay state throttling and timeouts in [mqtt] of transport.toml, the client key ID in the test vectors, docs/mqtt-relay.md, and deprecate the plaintext topics and SystemState.mqtt_client_id. Closes #48 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XkZEiWoJmJsqnYdysAR9wp
|
The latest Buf updates on your PR. Results from workflow Proto Check / check (pull_request).
|
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.
Requested by Michaël · project thread
What and why
Phase 3 of #44: the contract for carrying the secure channel over any MQTT broker, used as an untrusted relay. Closes #48. Implemented by OpenCarControls/firmware#138 (relay; OpenCarControls/firmware#139 adds WiFi + LTE together on top) and OpenCarControls/mobile-app#140 (app).
[mqtt]intransport.toml: one topic per client in both directions,opencar/{device_key_id}/d/{client_key_id}(the device subscribes tod/+) andopencar/{device_key_id}/c/{client_key_id}, plus the reserved retained state topic. QoS 1, never retained. Device client ID = device key ID; app client ID = client key ID + 4 random bytes per connection.command_topic_template/data_topic_templateandSystemState.mqtt_client_id(field kept, markeddeprecated).docs/secure-channel.mdand added to the test vectors (and their generator).docs/mqtt-relay.md: topics, client IDs, what the relay carries (remote tier: basic state and basic commands only), optional broker hardening (none / password / TLS / mTLS), what the broker can still see, a suggested Mosquitto ACL, and WiFi + LTE devices.docs/lan.mdupdated for devices with both uplinks.Why one topic per client for client → device too: #48 proposed a single device topic for every client. With it the device can't route the unknown session frame (it doesn't know which client a frame for an unknown session came from), which clients rely on after a device restart or a broker reconnect. The device also drops a handshake init whose client key doesn't match the key ID in its topic.
Checklist
feat:,fix:,docs:,chore:)buf format,buf lintandbuf breakingpass (CI)optionalble.payload.max_message_bytes)Source of the data
No vehicle signals: transport only.
https://claude.ai/code/session_01XkZEiWoJmJsqnYdysAR9wp
Generated by Claude Code