GeezerVison is showing github.com — broker-tls BT-3: queue broker Phase 1 — TLS server authentication on the TCP leg · Issue #14401 · developing-today/code
broker-tls BT-3: queue broker Phase 1 — TLS server authentication on the TCP leg #14401DescriptionParent: #13685 (broker TLS design line, fleet CA program #9155). Design of record: doc/2026-11-24T13-59-26Z_design_broker-tls/2026-11-24T13-59-26Z_design_broker-tls.md (PR #14398). Drew's ruling (2026-11-23) governs: long-term plan line, not a Phase 1 blocker, gates nothing; interim token auth stands. DESIGN-PROGRAM BUILD SLICE — production rollout is explicitly out of scope; production enablement follows the program production gate on #9155. Not enqueued as a live queue task at filing: this slice activates in the program's later order, after the #13685 design is accepted (reason recorded here per the filing rule).
Scope (design record §§4–5; first mover per rule M5):
- Queue broker presents its
broker-server leaf (BT-1) on the TCP leg (QUEUE_BROKER_BIND, default tailnet :4801); capable clients validate against the BT-2 trust bundle and fail closed, with a named, logged operator break-glass override.
- Token auth unchanged and still required. UDS leg unchanged.
- Phase transition is an additive config flag defaulting to the permissive posture (rule M1); the Phase 0 accept path remains in the binary (rule M2).
Depends on: BT-1, BT-2.
Acceptance: TLS-validated client path proven in a synthetic estate; token-only and UDS paths proven unaffected; override use is visible in logs.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T14:02:32Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch",
"repo": "developing-today/code",
"branch": "main",
"sha": "c11f41086f57d626be7eb582763b721f8f557408"
},
"auth_subject": "felix",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Acceptance criteria
- The queue broker's TCP leg presents TLS server authentication using the BT-1 profiles and BT-2 trust bundle.
- Clients validate the broker certificate; a wrong/untrusted certificate is refused, covered by tests.
- Interim token auth still works; production enablement is out of scope for this slice (design-program build slice).
Activitydeveloping-today commented on Nov 24, 2026 developing-today-fleet commented on Nov 24, 2026 ContributorAuthor More actions Intake review
Related: Parent #13685 (broker TLS design line, fleet CA program #9155); design of record in PR #14398; depends on BT-1 (#14399) profiles and BT-2 (#14400) trust bundle.
Notes: Phase 1 slice for the queue broker specifically — server auth only, client certs arrive in Phase 2/3 (BT-6/BT-7).
Risks: TLS on the broker leg touches every queue client; a bad rollout pattern here repeats across brokers.
Suggested approach: Build against the BT-1/BT-2 artefacts, keep token auth intact, and test both trusted and untrusted certificate paths.
🤖 Agent note · state: filed
- Agent: fleet monitor (repo-fleet-monitor)
- Session / ID: repo-fleet-monitor run 2026-11-24 08:14 CST
- Found via: monitor reconciliation
- Task: intake enrichment (protocol §5) — acceptance criteria, label normalisation, related links
- Expectation: s — done when the issue carries criteria, normalised labels and this review
- Links: n/a
developing-today-fleet commented on Nov 25, 2026 ContributorAuthor More actions Claimed by felix lane (Muse sandbox seat) 2026-11-25.
Slice plan (feature-slice shape, one PR): BT-3 Phase 1 for the queue broker, additive and default-off per rules M1/M2 —
- Broker: when QUEUE_BROKER_TLS_CERT_FILE + QUEUE_BROKER_TLS_KEY_FILE name a BT-1 broker-server leaf + on-host key, the TCP leg presents TLS; the same port dual-accepts plaintext (Phase 0 path retained, plaintext accepts logged as adoption evidence). No config → today's plaintext behaviour, byte for byte.
- Client: when REPO_QUEUE_TLS_TRUST_STORE names a BT-2 trust store, the direct TCP leg validates the broker leaf against the store's active classical anchors (fleet-cert active_anchors, re-verified on read) and fails closed on a wrong/untrusted cert. Named break-glass override REPO_QUEUE_TLS_BREAK_GLASS=queue-broker skips validation and logs loudly on every use.
- Token auth and the UDS leg are untouched.
- Tests in a synthetic estate (fleet-cert: root set → Base issuer → broker-server leaf from an on-host CSR → trust export → stage/ack/activate): validated roundtrip succeeds, wrong token still 401 over TLS, untrusted-CA broker refused, break-glass connects, plaintext client still accepted on a TLS-configured port.
New dependencies for fleet-queue (reported per house rule): fleet-cert (workspace crate — BT-2 trust-store consumption), rustls 0.23 (ring provider — TLS for the TCP leg), rustls-pki-types 1 (PEM/DER types); dev-only rcgen 0.14 for minting the test host key/CSR. Refs #13685 developing-today-fleet commented on Nov 25, 2026 ContributorAuthor More actions Progress — felix lane, 2026-11-25: PR #15152 open (unmerged, for Felix's review), head aac084b, branch felix/14401-bt3-broker-tls.
Delivered: broker TCP leg presents TLS server authentication when QUEUE_BROKER_TLS_CERT_FILE + QUEUE_BROKER_TLS_KEY_FILE name a BT-1 broker-server leaf + on-host key, dual-accepting plaintext Phase 0 on the same port with logged accepts (rules M1/M2); client direct/bounded TCP legs validate against the BT-2 trust store's active anchors via REPO_QUEUE_TLS_TRUST_STORE, fail closed on untrusted leaves, with the named logged break-glass REPO_QUEUE_TLS_BREAK_GLASS=queue-broker. Token auth and UDS untouched; book pages updated in the same PR.
Verification (remote, fleet-command): run 45646655611 — cargo test -p fleet-queue --features client,queue-broker: TEST_EXIT=0, 716 passed / 0 failed incl. all six new broker_tls tests by name (validated roundtrip + token gate, untrusted refused, break-glass, plaintext dual-accept, validating client refuses plaintext broker, staged-only store yields no anchors). Run 45642463243: cargo check clean for client-only and secrets-broker-only feature sets. fmt: all PR files clean; the one remaining fleet-queue fmt diff (turso_queue/admin.rs) is pre-existing on main and left untouched.
Remaining on #14401: the bundle-version acknowledgement in the broker health surface — the BT-2 remainder recorded on #14400, riding with BT-4/BT-5. Refs #13685 developing-today-fleet commented on Nov 25, 2026 ContributorAuthor More actions BT-3 Phase 1 merged by Felix: PR #15152 (2026-11-25). The queue broker's TCP leg now presents TLS from a BT-1 broker-server leaf when configured (half-configured is a startup error, never a silent plaintext fallback), dual-accepts plaintext Phase 0 on the same port with the plaintext accepts logged, and clients with a BT-2 trust store validate fail-closed against the store's active anchors — the only escape is the named break-glass, which still encrypts and logs every use. Verification run 45646655611: 716 passed / 0 failed incl. all six new broker_tls tests by name. New fleet-queue deps: fleet-cert (workspace), rustls 0.23, rustls-pki-types 1 (dev-only rcgen 0.14). #14401 stays open for its remaining acceptance: the bundle-version acknowledgement in the broker health surface (the BT-2 remainder, riding with BT-4/BT-5). dezren39 commented on Nov 26, 2026 Triage (lane code-f, queue task 24198, 2026-11-26): the scoped BT-3 Phase 1 work is complete. PR #15152 is merged and delivered broker TCP TLS when configured, dual-accept plaintext Phase 0 with logged accepts, fail-closed client validation against active BT-2 anchors, named logged break-glass, and preserved token/UDS paths. Its recorded remote verification was 716 passed / 0 failed, including the broker_tls tests; see the merge record above and PR #15152.
The remaining bundle-version acknowledgement in broker health is BT-2 acceptance, not unfinished TLS server authentication in BT-3. BT-2 (#14400) remains open; BT-5 (#14403) is explicitly queued behind BT-2 and carries the corresponding broker work. BT-4 is closed. Therefore this BT-3 issue has no remaining scoped acceptance to queue: closing it does not claim BT-2 is complete or enable production rollout (still gated by #9155).
Verdict: close BT-3 as complete on #15152; follow the residual acknowledgement/health work on #14400 and #14403. dezren39 commented on Nov 26, 2026 dezren39 commented on Nov 26, 2026 Refs #14400. BT-3 is complete on #15152; BT-2 owns the remaining trust-bundle acknowledgement/health acceptance.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|