Skip to content

Add team broker admin API credentials for the Expert bridge - #360

Merged
andypalmi merged 3 commits into
mainfrom
fix/expert-bridge-team-broker-api
Aug 4, 2026
Merged

Add team broker admin API credentials for the Expert bridge#360
andypalmi merged 3 commits into
mainfrom
fix/expert-bridge-team-broker-api

Conversation

@andypalmi

Copy link
Copy Markdown
Contributor

Description

The template enables Expert (expert.enabled: true with centralBroker.server) and the team broker (broker.teamBroker.enabled: true), but the team broker had no api block. The Expert chat bridge provisions itself by calling the EMQX admin API, so without those credentials the bridge fails to build — forge logs Error syncing EMQX bridge: Invalid URL and no connector is created, leaving chat with no responses.

This adds broker.teamBroker.api (url + key + secret) and drives both it and the existing emqx-api bootstrap key from the same BROKER_API_KEY / BROKER_API_SECRET variables, so an override can't put the two out of sync. Defaults match the previously hardcoded bootstrap (flowfuse / verySecret), so behaviour is unchanged for anyone not overriding them.

Verification

Reproduced on a local stack: with the api block removed the bridge logs Invalid URL and creates 0 connectors; with it present the connector comes up status=connected and all bridge rules/sources are created. Confirmed docker compose config renders correctly with defaults and with overrides (both sides stay in sync).

The Expert chat bridge provisions itself through the EMQX admin API, but
the forge config enabled the team broker without any broker.teamBroker.api
credentials, so the bridge failed to build (Invalid URL, no connector).
Add the api block, sourced from BROKER_API_KEY/BROKER_API_SECRET, and drive
the emqx-api bootstrap from the same variables so the two always match.
@andypalmi
andypalmi requested a review from hardillb August 4, 2026 10:27
Comment thread .env.example Outdated
@andypalmi
andypalmi requested a review from hardillb August 4, 2026 12:39
Comment thread .env.example
@andypalmi
andypalmi merged commit 8fc4233 into main Aug 4, 2026
2 checks passed
@andypalmi
andypalmi deleted the fix/expert-bridge-team-broker-api branch August 4, 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.

2 participants