Repository navigation
feat(helm): add a dedicated connection-broker bearer secret value - #1859
Closed
nikhilunni wants to merge 2 commits into
Closed
nikhilunni wants to merge 2 commits into
nikhilunni wants to merge 2 commits into
Conversation
nikhilunni
force-pushed
the
broker-bearer-chart-value
branch
from
December 2, 2026 20:44
2040171 to
5024658
Compare
The coordinator sends ENGRAM_CONNECTION_BROKER_BEARER to the orchestrator's connection credential broker. The chart took it from the CONTROL_PLANE_BEARER key and could not set the orchestrator's CONNECTION_BROKER_BEARER, so every chart deployment used the control-plane bearer for the broker. `orchestrator.connectionBrokerSecret` (`existingSecret`, `key`) now feeds both variables from one Secret key, so they always match. When `existingSecret` is empty, the render is the same as before: the coordinator reads the CONTROL_PLANE_BEARER key, and the orchestrator env omits CONNECTION_BROKER_BEARER and falls back. This is the expand step; a later release makes the dedicated secret required. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…request Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nikhilunni
force-pushed
the
broker-bearer-chart-value
branch
from
December 2, 2026 21:56
5024658 to
6826d55
Compare
Contributor
Author
|
Combined into #1860 with the other audit PRs, so they merge and deploy together. |
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.
Summary
The coordinator sends
ENGRAM_CONNECTION_BROKER_BEARERto the orchestrator's connection credential broker. The Helm chart took that value from theCONTROL_PLANE_BEARERkey, and it had no way to set the orchestrator'sCONNECTION_BROKER_BEARER. So every chart deployment uses the control-plane bearer for the broker, and a holder of the control-plane bearer can mint connection credentials.This PR is the expand step. It adds
orchestrator.connectionBrokerSecret(existingSecret,key, default keyCONNECTION_BROKER_BEARER). WhenexistingSecretis set, the chart gives that one Secret key to both:ENGRAM_CONNECTION_BROKER_BEARER(templates/deployment.yaml)CONNECTION_BROKER_BEARER(templates/orchestrator-deployment.yaml)so the two always match.
Unset (the default), nothing changes on upgrade. The coordinator still reads the
CONTROL_PLANE_BEARERkey, and the orchestrator env omitsCONNECTION_BROKER_BEARER, so the orchestrator falls back toCONTROL_PLANE_BEARERas it does today.Docs: the values comment,
docs/deploy.md, the site configuration and Helm references, and a CHANGELOG[Unreleased]"Added" entry.Follow-up: the contract step
In a later release, after deployments set the dedicated secret, the orchestrator stops falling back to
CONTROL_PLANE_BEARER. It then refuses broker requests when it has noCONNECTION_BROKER_BEARERof its own. The chart then requiresorchestrator.connectionBrokerSecret.existingSecretand stops wiring the coordinator from theCONTROL_PLANE_BEARERkey. That release's CHANGELOG upgrade notes must tell operators to set the secret first.Validation
helm lintwithci/render-values.yaml, with the value unset and set: passed.helm template, value unset, compared withorigin/main: the only difference is the rewritten template comment. With comment lines removed, the two outputs are identical.helm template, value set (existingSecret=engram-broker): both env vars readengram-broker/CONNECTION_BROKER_BEARER.values-{gcp,aws,iap}.yaml.example, placeholders stubbed as in CI) renders.site/:pnpm build(leak + style lint,astro check, build) passed on Node 24.git diff --check: passed.🤖 Generated with Claude Code