GeezerVison is showing github.com — broker-tls BT-2: trust-bundle consumption for broker clients (versioned, two-phase rollover, ack in health) · Issue #14400 · developing-today/code
broker-tls BT-2: trust-bundle consumption for broker clients (versioned, two-phase rollover, ack in health) #14400DescriptionParent: #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 §6):
- Broker clients install the program classical compatibility trust bundle (spec §3.5 roots-classical / roots-all where supported) produced by
fleet cert trust export and delivered with the fleet binary/config deployment — the program's channel, not a broker side channel.
- Two-phase rollover client behaviour per spec §27.3 item 9: distribute new anchor set → acknowledge → activate → retire old; a client keeps last-known-good anchors if distribution fails, and rollover never activates without acknowledgements.
- Brokers report, in their health surface, the bundle version each connected client presented with, so stale clients are visible before a rollover can break them.
- Format compatibility: build against the same versioned bundle format the §27.3 trust-bundle controller will use, so the controller absorbs this path rather than replacing it. Dependency: fleet-ca: issuer & leaf lifecycle, AIA/CDP/CRL/OCSP & publication #9164 publication machinery; if that work reorders, this is the only broker slice whose schedule moves.
Acceptance: bundle install + rollover + acknowledgement demonstrated end to end in a synthetic estate; stale-client visibility shown in the health surface.
{
"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:27Z",
"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 change described in this issue ("broker-tls BT-2: trust-bundle consumption for broker clients (versioned, two-phase rollover, ack in health)") is implemented or, if the intake validation shows it is already resolved, the resolving PR/commit is linked and the issue is closed with that evidence.
- Relevant tests / CI for the touched area pass, or any pre-existing failure is named with evidence.
- No unrelated behaviour regresses; the verification steps and results are recorded on this issue or its PR.
Activitydeveloping-today commented on Nov 24, 2026 developing-today-fleet commented on Nov 24, 2026 ContributorAuthor More actions Intake review
🤖 Agent note · filed
Validation: issue re-verified OPEN at intake. No merged PR explicitly resolving this issue was verified as closing evidence in this bounded pass, so the issue stays open — a worker should confirm the candidate PRs above (if any) before starting.
Notes: Acceptance criteria appended to the body (original text preserved verbatim above it); labels normalised per the taxonomy.
Risks: scope may have moved since filing; re-check related work and current main before implementing.
Suggested approach: claim through the queue, reproduce/verify against current main first, then implement the smallest change that satisfies the acceptance criteria and record verification on the PR. 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-2 slice 1 — the versioned trust bundle + broker-client consumption path in fleet-cert:
fleet cert trust export: assemble a versioned §3.5 trust bundle (roots-classical / roots-all / roots-pq / cross-certs) from verified root-set bundles, as a §7 bundle of a new trust type whose manifest bundle_version is the version clients acknowledge; a trust-sources descriptor records provenance.
- Client trust store with the §27.3 item 9 two-phase rollover in its minimal broker form: stage (verify; a failed distribution never touches the active anchors) → acknowledge (ack record binding version + content hash) → activate (refused without a matching ack; previous version kept as last-known-good) → retire (never the active or last-known-good version).
trust status reports active/staged/acked versions — the client half of the ack surface.
- Synthetic-estate test: build root sets with the engine, export v1, install, roll over to v2, prove a corrupted v3 is rejected with v2 still active, and version-reuse-with-different-content is refused.
Out of this slice (recorded for the next one): presenting the acked version in the broker handshake and the broker-side health aggregation — that rides with the BT-3/BT-4/BT-5 handshake work, which is where the hello/health surfaces change per broker. developing-today-fleet commented on Nov 25, 2026 ContributorAuthor More actions BT-2 slice 1 landed as PR #15137 (unmerged, for Felix's review) — head 189a9a9.
What it delivers (fleet-cert):
fleet cert trust export: versioned §3.5 trust bundle from verified root sets (roots-classical / roots-all / roots-pq / cross-certs + provenance descriptor), a §7 bundle of the new trust type whose manifest bundle_version is the acknowledged stamp.
- Client trust store: stage (verify; a failed distribution never touches the active anchors) → ack (binds version + content hash, re-verifying the installed copy) → activate (refused without a matching ack; displaced version kept as last-known-good) → retire (never active/last-known-good).
active_anchors re-verifies on every read.
Verification (remote only, fleet-command, fresh CARGO_TARGET_DIR): run 45635631332 — fmt clean (FMT_EXIT=0); fleet-cert suite green incl. the new tests/trust.rs 5/5 by name (end-to-end rollover, corrupt-distribution rejection, version-reuse refusal, PQ-only export refusal, staged retire). One pre-existing failure proven against unmodified main (baseline run 45635656900): hierarchy openssl_independent_validation's ML-DSA leg — the executor's OpenSSL predates ML-DSA; filed as #15136.
Remaining for BT-2 (next slice): present the acked bundle version in the broker handshake and aggregate it on the broker health surface — rides with the BT-3/BT-4/BT-5 handshake work (#14401/#14402/#14403). developing-today-fleet commented on Nov 25, 2026 ContributorAuthor More actions BT-2 slice 1 merged by Felix: PR #15137 (2026-11-25). Review notes: stage refuses version-reuse-with-different-content and rollback versions and verifies the installed copy; ack re-verifies and binds version+content; activate requires a matching ack and retains the displaced version as last-known-good; retire refuses active/LKG; active_anchors fails closed on drift and re-verifies on every read. Verification run 45635631332: fleet-cert suites green incl. the five new trust tests by name; the one failure (hierarchy ML-DSA leg) is proven pre-existing on main and filed as #15136. #14400 stays open: the next slice (presenting the acked version in the handshake + broker health aggregation) rides with BT-3/BT-4/BT-5. Refs #13685 dezren39 commented on Nov 26, 2026 Triage (lane 9, queue task 23907, 2026-11-26): real and current, partly done.
Verdict: keep open as real work. The triage task is complete.
Generated by Claude Code dezren39 commented on Nov 26, 2026 Refs #14401. Prior BT-3 note recorded here for the residual BT-2 work: #14401 is closed as complete on merged PR #15152; the remaining trust-bundle acknowledgement/health acceptance belongs to BT-2 and its downstream BT-5 work documented in #14403. dezren39 commented on Nov 26, 2026 Re-triage (lane code-i, queue task 24187, 2026-11-26): real work remains; no small fix closes this issue.
- Done: PR cert: trust-bundle export + broker-client trust store (BT-2 slice 1, #14400) #15137 merged the versioned trust-bundle export and client store stage/ack/activate/retire flow. PR queue: broker TLS Phase 1 on the TCP leg (BT-3, #14401) #15152 merged BT-3 TLS transport, but its landing note explicitly leaves the bundle-version acknowledgement in broker health outstanding.
- Remaining: presenting the acknowledged bundle version in the broker handshake and exposing it in broker health, including stale-client visibility.
- Routing gap: BT-5 (broker-tls BT-5: secrets broker Phase 1 — TLS server auth on the off-host leg, self-independent renewal (M4) #14403) is open, but its current body covers off-host TLS and self-independent renewal, not this acknowledgement/health acceptance. Its triage task 23905 is parked until broker-tls BT-2: trust-bundle consumption for broker clients (versioned, two-phase rollover, ack in health) #14400 closes, while broker-tls BT-2: trust-bundle consumption for broker clients (versioned, two-phase rollover, ack in health) #14400 was previously said to depend on BT-3/BT-5 for this remainder. That creates a closure cycle, not a valid work dependency.
- Verdict: keep broker-tls BT-2: trust-bundle consumption for broker clients (versioned, two-phase rollover, ack in health) #14400 open; assign the handshake/health remainder to an explicit, live broker implementation slice (or slices) and remove the BT-5 wait on broker-tls BT-2: trust-bundle consumption for broker clients (versioned, two-phase rollover, ack in health) #14400 if that slice is where the remaining acceptance lands. Close broker-tls BT-2: trust-bundle consumption for broker clients (versioned, two-phase rollover, ack in health) #14400 only when the handshake version and stale-client health visibility are demonstrated. No code changed in this triage.
This issue is no longer awaiting first-look triage; the remaining work is feature-sized. dezren39 commented on Nov 26, 2026 BT-2 transport slice 2 merged in PR #15650 (merge commit 68c641b). Direct TCP requests in both bounded and unbounded paths send the active, verified trust-bundle version; plaintext, break-glass, and Unix socket requests make no version claim.
Fleet run dezren39/fleet#45858878991 passed the refreshed-main focused suite: 3 passed, 0 failed. #14400 remains open for broker-side per-client version tracking and health visibility, including stale clients. That next slice is queued as live task #24293. developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions 🤖 Agent note · 1837-G · slice 3 premise verified, implementation handed back scoped
- Lane: 1837-G (agent work loop DRIVE, 2026-11-26 18:37 CST) · queue task 24293 (slice 3 of this issue)
- Premise + ownership (all 9 comments read): confirmed live and unclaimed elsewhere. Slice 1 merged PR cert: trust-bundle export + broker-client trust store (BT-2 slice 1, #14400) #15137; BT-3 transport merged PR queue: broker TLS Phase 1 on the TCP leg (BT-3, #14401) #15152; client version presentation merged PR fix(fleet-queue): send validated trust bundle version #15650 (merge
68c641bc8a352f0e02005d7fbfa8f61dabdf9942) — direct-TCP requests now send the active verified trust-bundle version; plaintext, break-glass and UDS requests make no claim.
- Remaining (this slice): queue-broker consumes the
X-Fleet-Trust-Bundle-Version value on the validated direct-TCP path, records per-client version + last-seen, and surfaces it in broker health so stale clients are identifiable; unvalidated paths must create no validated-version claim. Owned paths per the packet: pkgs/fleet/crates/fleet-queue/src/queue_broker.rs, pkgs/fleet/crates/fleet-queue/src/broker_tls.rs. Named oracle tests required for version capture, health serialization, staleness, and the no-claim paths.
- This lane's outcome: premise verified and scope confirmed, but no code was written — the lane's timebox ended before a Rust change plus its compile/test cycle could be landed and verified responsibly. Task 24293 is checkpointed and parked short for the next lane; nothing here is claimed as implemented.
dezren39 commented on Nov 27, 2026 Progress: the queue-broker health slice is in draft PR #15870. It preserves server-observed transport metadata, keeps stale versions distinct for a peer, records authenticated TLS requests without a usable version as unverified, and keeps unauthenticated GET /healthz liveness-only. The focused Fleet command step passed on d2f8e15 in run dezren39/fleet#45929620727. I merged current main into the PR branch; the same focused command is running on exact head 6e6cebb in run dezren39/fleet#45930519422. dezren39 commented on Nov 27, 2026 Slice 3 is complete: PR #15870 merged as 1351b47d9437ab2a141fa44f1ba111d7ba12880c. Fleet run #45930519422 passed 12 queue-broker tests, TLS transport, break-glass, and 16 UDS tests; #45931420042 passed the trust-version property test on exact head 12f7a2c. The issue remains open for the broader BT-2 work. developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions agent-note:v1 — lane 2122-I (agent work loop PRESS/delta, 2026-11-26 21:22 CST): premise + ownership check, post-slice-3 disposition. No code written; no claim made.
Verified state (issue + ALL 12 comments read; re-read live via gh api):
What remains of BT-2: the secrets-broker leg of the same acceptance — acked bundle version presented in the secrets-broker handshake and aggregated in its health surface. That leg sits in BT-5 territory (#14403, OPEN, status/needs-triage, effort/l), whose current body covers off-host TLS + self-independent renewal and does not carry this ack/health acceptance (the closure-cycle gap named in the 2026-11-26 re-triage stands). Programme sequencing also applies: per Drew's 2026-11-23 ruling recorded on this issue, BT-2 is a long-term plan line that gates nothing, and production enablement follows the programme production gate on #9155.
Disposition: no unclaimed, workable slice distinct from the sibling-held PRs exists for an unattended lane right now.
Exact wake: a live queue task (successor to 24293) or an explicit slice on #14403 claiming the secrets-broker handshake-version + health remainder with Refs #14400 — then that lane implements it and this issue closes when it lands.
developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions Progress — oc-code-05, BT-2 secrets server-side slice: draft PR #16121, pushed head 3ad0297053c033d56fd2e15d5286da3098c56119.
Verified prerequisites on main: trust store #15137, direct queue presentation #15650, queue health #15870 merged. Secrets broker still had no TLS accept leg; its direct source is UDS-only and the session proxy's network leg is plaintext. No human holds; existing #14421 changes the same broker file for unrelated op-backend work (merge-conflict risk acknowledged).
This PR adds opt-in SECRETS_BROKER_TLS_CERT_FILE/SECRETS_BROKER_TLS_KEY_FILE using the existing bounded same-port dual-accept adapter, preserving plaintext defaults and permanent plaintext UDS. Only token-authenticated TLS requests enter a process-local (peer IP, presented version) last-seen inventory. Authenticated /health exposes old/current versions and ages; missing/invalid/duplicate versions are unverified. Public health stays unchanged. These are presented claims, not proof of client certificate validation.
Evidence: failing-first test-only SHA 41bc913382f0972543dd9cab4b093cccc71ef0f9 compiled and failed for the intended oracle (Null != []) in Fleet 45989653628. Initial after run 45988873383 found missing test imports, now fixed. Exact pushed-head follow-up dezren39/fleet#45990257607 runs secrets tests (real validated rustls loopback + transport property invariant), existing TLS/break-glass tests, and UDS regressions. Terminal update: 49 secrets-broker tests passed, including new real TLS/property/health tests, on exact pushed head. Overall run then failed compiling queue-broker regression dependencies because the executor lacks OpenSSL/pkg-config (openssl-sys); queue TLS tests did not run and the subsequent UDS command was not reached. This is focused secrets-suite evidence, not a fully green aggregate run or issue-completion claim. Static workhorse review agrees no blocker after import fix; retained observation growth is documented risk. Local diff check/rustfmt only, no sandbox build.
Issue stays open. Next slice: after a PR, the actual secrets proxy/network client validates the broker through an activated fleet trust store and presents that version, demonstrated through rollover into this health inventory. BT-5 local renewal independence remains separate. No production rollout; #9155 gate unchanged. No repo-queue claim or mutation was made by this lane. developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions Progress — oc-code-05, secrets server-side slice (PR #16121, draft).
Refreshed the branch on current main (merge 92e8e5aa968 + fmt a10b4b0530e, pushed head a10b4b05). Single trivial Cargo.toml conflict resolved (kept main's multi-line feature format, retained the slice's rustls deps); no Rust conflicts with main's peer-sync/store-vault work.
Local evidence on the refreshed merge (laptop, via fleet-build-lock): cargo test -p fleet-queue --features secrets-broker --lib secrets_broker → 49 passed (incl. new real-TLS/property/health oracles); uds_http → 16 passed; cargo fmt --check clean; git diff --check clean. The queue-broker,secrets-broker broker_tls combo still cannot build on this laptop (no system OpenSSL for openssl-sys) — same environmental gap as the last pass, not a code failure.
Full-workspace evidence dispatched: fleet-rust-tests run https://github.com/developing-today/code/actions/runs/46013534966 on branch oc-code-05/14400-secrets-trust (workflow_dispatch; runners carry OpenSSL). PR stays draft until that run reports.
Watch: #14421 (open, non-draft) rewrites secrets_broker.rs (+884/-369) for unrelated op-backend work — merge-order conflict risk with this slice's +227/-49 stands; whoever merges second resolves.
Next slice after this PR (unchanged): proxy/secrets network client validates the broker through an activated fleet trust store and presents that version, demonstrated through rollover into this health inventory. No production rollout; #9155 gate unchanged. developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions Result — oc-code-05, #16121 verification closed out (branch head a10b4b05 pushed; lane done for this pass).
Oracle: the one CI failure is pre-existing, not this slice. fleet-rust-tests on the branch (runs 46013534966 + rerun, 876 passed / 1 failed) fails only broker_tls::tests::validated_roundtrip_and_token_gate_over_tls (connection reset in the test's own roundtrip helper). I dispatched the identical workflow on pristine main 97efa187539 (run 46016370776, oracle branch deleted after): 873 passed / same 1 test failed at the same assertion. Our slice's broker_tls diff is cfg-gate widening plus a behavior-identical from_env→from_env_prefix refactor, and the failing path (from_pem roundtrip) is untouched by it. The regression entered main drift sometime after the 09:44 UTC green nightly. Separately, main HEAD is now compile-broken for this suite (E0063 missing prompt_id in a WorkIdentity initializer, run 46015897857) — someone else's in-flight breakage.
This slice's standing: remote evidence is 876 passed + 1 proven-pre-existing failure; local laptop evidence is 49/49 secrets-broker + 16/16 UDS + fmt/diff-check clean (queue-broker combo unbuildable on the laptop: no system OpenSSL). PR #16121 stays draft: do not merge into a red main; rebase-and-merge once the roundtrip regression (and the prompt_id compile break) are fixed on main.
Next slice after this PR (unchanged): proxy/secrets network client validates the broker through an activated fleet trust store and presents that version, demonstrated through rollover into this health inventory. No production rollout; #9155 gate unchanged. developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions
Disposition — lane 0937-N, 2026-11-27 09:37 CST alpha DRIVE (fallback-list rank 13, taken after #14944 stand-down)
Premise + ownership check firsthand: read the issue and ALL comments, plus a fresh second read confirming draft PR #16121 is OPEN, draft, head a10b4b0530efe33205affba74295b6fbcbb0c702.
Stand down — in-flight covering PR, no claim made by this lane, no code written:
Wake: PR #16121 merges (after main's roundtrip/prompt_id breakage is fixed), then the follow-on client slice becomes workable. developing-today-fleet commented on Nov 27, 2026 ContributorAuthor More actions
Lane 1422-I (delta PRESS, 2026-11-27 14:22 CST) premise + ownership check on #14400 — stand down, no claim made, no code written.
Read the issue and ALL comments firsthand. Slices 1–3 are merged (PR #15137 trust-bundle export + client store; PR #15650 client version presentation; PR #15870 queue-broker per-client version + health, merge 1351b47). The remaining secrets-broker leg is covered by draft PR #16121 (oc-code-05) — fresh second read this run: still OPEN, draft, head a10b4b0530efe33205affba74295b6fbcbb0c702, CLEAN/MERGEABLE, unchanged since 2026-11-27T14:07Z. Its own closing note holds it draft until main's broker_tls roundtrip regression is fixed. This confirms lane 0937-N's disposition (comment 7222366651) still stands.
Wake (unchanged): PR #16121 merges, then the follow-on proxy/secrets client slice becomes workable. This lane took the next unclaimed fallback-list item instead and landed #13983 slice 2 in PR #16310.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|