Commit b58dc42
authored
fix(frontend-proxy): pass CHATBOT_HOST/PORT in base compose so Envoy renders (#3570)
The chatbot upstream cluster was added to the base envoy.tmpl.yaml, but the
frontend-proxy entrypoint runs `envsubst < envoy.tmpl.yaml` using only the
container's own environment, and CHATBOT_HOST/CHATBOT_PORT were injected into
that environment solely by the optional compose.agent.yaml patch.
Whenever the proxy renders its config without those vars present, envsubst
leaves the chatbot socket address empty, so Envoy fails bootstrap validation
(StaticResources.Clusters[10] ... SocketAddress.Address: value length must be
at least 1 characters) and the proxy never starts. That takes down all traffic
through the proxy and was failing the telemetry tests on main.
Pass CHATBOT_HOST/CHATBOT_PORT to frontend-proxy in the base compose.yaml so a
valid address is always rendered, regardless of whether the agent stack is
layered on. The compose.agent.yaml patch keeps its `depends_on: chatbot`.
Assisted-by: Claude Opus 4.8
Signed-off-by: Shenoy Pratik Gurudatt <4348487+ps48@users.noreply.github.com>
Co-authored-by: Shenoy Pratik Gurudatt <4348487+ps48@users.noreply.github.com>1 parent 2ad011f commit b58dc42
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
| 352 | + | |
351 | 353 | | |
352 | 354 | | |
353 | 355 | | |
| |||
0 commit comments