Repository navigation
P2.2/P2.3: MQTT transport sharing the ingest pipeline - #20
Merged
Merged
Conversation
- the telemetry pipeline moves to transport-agnostic src/ingest.ts (schema -> device -> freshness -> seq claim -> signature -> insert -> rules); the HTTPS route becomes a thin adapter; notifier moves to src/notify.ts - src/mqtt.ts: bridge subscribes proxies/telemetry/+ and publishes verdicts on proxies/telemetry-ack/<id>; started when MQTT_URL is set; the broker is untrusted by design — the Ed25519 envelope and monotonic seq carry the trust - deploy: eclipse-mosquitto joins the one-box compose with a loudly documented pilot config (anonymous on-box; lock-down path in comments) - README refreshed to platform status (per owner request): new architecture sketch, Phase 2 feature rows, layout, MQTT config; TELEMETRY.md documents both transports - tests: 54 — four MQTT integration tests against an in-process aedes broker (accept+store, seq replay, tampered signature, malformed JSON ack); aedes v1 requires the async createBroker factory Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Roadmap items
P2.3 ✅ (MQTT ingest) + P2.2 ◐ (broker in the one-box compose; hardening documented as deployment policy) — plus the README status refresh requested by the owner.
Design
ingest.ts— HTTPSPOST /telemetryand the MQTT bridge run the identical verification chain (schema → device → freshness → atomic seq claim → Ed25519 → insert → rules).mqtt.tssubscribesproxies/telemetry/+, acks verdicts onproxies/telemetry-ack/<id>; enabled byMQTT_URL. The broker is untrusted by design: the signed envelope + monotonic seq carry the trust, so broker auth (TLS, per-device credentials, topic ACLs) is deployment policy — the mosquitto pilot config says so loudly.Verification
createBrokerfactory, discovered whennew Aedes()silently never CONNACKs): accept + store, seq replay over MQTT, tampered signature, malformed-JSON ack. Productionnpm audit: 0 vulnerabilities with themqttdependency.🤖 Generated with Claude Code