Skip to content

fix: Require broker.enabled for Expert central broker default - #992

Merged
andypalmi merged 2 commits into
mainfrom
fix/expert-central-broker-requires-broker-enabled
Aug 4, 2026
Merged

fix: Require broker.enabled for Expert central broker default#992
andypalmi merged 2 commits into
mainfrom
fix/expert-central-broker-requires-broker-enabled

Conversation

@andypalmi

Copy link
Copy Markdown
Contributor

Follow-up to #991.

The Team Broker configuration only renders when forge.broker.enabled is true (the whole broker: block in configmap.yaml is gated on it). The central broker default added in #991 was gated only on forge.broker.teamBroker.enabled, so enabling just the team broker flag while forge.broker.enabled was false emitted an expert.centralBroker.server with no team broker to bridge from.

This gates the default (and the accompanying guard) on both flags.

Rendered cases (helm template):

  • broker.enabled=true + teamBroker.enabled=truecentralBroker.server: expert-broker.flowfuse.com:8883
  • broker.enabled=false + teamBroker.enabled=true → no centralBroker emitted (previously emitted incorrectly)
  • broker.enabled=true + teamBroker.enabled=true + explicit expert.broker.address/port → override respected
  • broker.enabled=true + teamBroker.enabled=false + explicit expert.broker.address → fails with guidance to enable both flags
  • both disabled + no address → nothing emitted (HTTP path)

The Team Broker only renders when forge.broker.enabled is true, so the
centralBroker default must be gated on both forge.broker.enabled and
forge.broker.teamBroker.enabled. Otherwise enabling only the team broker
flag emits a centralBroker with no team broker to bridge from.
@andypalmi
andypalmi requested a review from hardillb August 4, 2026 15:23
Set forge.broker.enabled alongside teamBroker.enabled in the render
cases, update the guard error message, and add coverage for the default
server value and the broker-disabled regression.
@andypalmi
andypalmi merged commit ca2d36f into main Aug 4, 2026
7 checks passed
@andypalmi
andypalmi deleted the fix/expert-central-broker-requires-broker-enabled branch August 4, 2026 15:45
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