Skip to content

chore(backend): drop dead MQTT_TOPIC env / mqtt.topic value (TRA-922)#153

Merged
mikestankavich merged 1 commit into
mainfrom
chore/tra-922-drop-dead-mqtt-topic
Jun 10, 2026
Merged

chore(backend): drop dead MQTT_TOPIC env / mqtt.topic value (TRA-922)#153
mikestankavich merged 1 commit into
mainfrom
chore/tra-922-drop-dead-mqtt-topic

Conversation

@mikestankavich

Copy link
Copy Markdown
Contributor

What

Removes mqtt.topic (trakrf.id/+/reads) from helm/trakrf-backend/values.yaml and the corresponding MQTT_TOPIC env injection in deployment.yaml.

Why

Hand-off from platform PR #475 (TRA-922, MQTT topic routing). That PR retires the backend's MQTT_TOPIC subscription filter — the ingest subscriber is now data-driven, subscribing to exactly the registered publish_topics ({org_slug}/.../reads) via an in-memory registry. The chart's mqtt.topic (added in infra #147) is dead config; the backend ignores MQTT_TOPIC after #475.

No per-env (values-gke/aks/eks) or argocd inlineValues override of mqtt.topic existed — the topic came solely from the chart default — so this is a clean removal.

Verification

  • helm template with mqtt.host set renders the MQTT env block (MQTT_USERMQTT_PASSWORDMQTT_URLMQTT_CLIENT_ID) without MQTT_TOPIC.
  • helm lint clean.

⚠️ Merge sequencing

Removing the env var changes the backend pod spec, so ArgoCD will roll the deployment (same pinned image, env removed). MQTT is live in preview (mqttEnabled: true; prod is false). To avoid a window where the pre-#475 image restarts without a subscription topic, merge this only after #475's image is live in preview — unless platform confirms the pre-#475 backend tolerates an unset MQTT_TOPIC, in which case order doesn't matter.

Related: gate confirmed separately — cloud Mosquitto ACL is topic readwrite # (not scoped to trakrf.id/), so slug-as-root topics are permitted at SUBSCRIBE. Future per-tenant scoping tracked in TRA-857.

🤖 Generated with Claude Code

Platform PR #475 (TRA-922) makes the ingest subscriber data-driven: it
subscribes to exactly the registered publish_topics ({org_slug}/.../reads)
via an in-memory registry and ignores MQTT_TOPIC entirely. The chart's
mqtt.topic (trakrf.id/+/reads, infra #147) is now dead config.

Remove the value and its MQTT_TOPIC env injection so the chart doesn't
read as a live subscription gate. No per-env (values-gke/aks/eks) or
argocd inlineValues override existed, so this is a clean removal.

Verified: helm template (mqtt.host set) renders the MQTT env block
without MQTT_TOPIC; helm lint clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mikestankavich mikestankavich merged commit 771c2cb into main Jun 10, 2026
19 checks passed
@mikestankavich mikestankavich deleted the chore/tra-922-drop-dead-mqtt-topic branch June 10, 2026 12:50
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