Repository navigation
Description
Fleet CA, credentials & secrets — v0.3 design mill (Summit build-out)
Program epic. Design-mill run ordered by Drew 2026-11-12 19:28 CST: run the Fleet v0.3 credentials/secrets/CA package through the design mill — preserve every requirement, break it into reviewed component designs, and turn each design into linked, testable implementation issues. A completed design is NOT a completed implementation epic; implementation children stay open until their own acceptance gates pass.
Intrinsic urgency: 450 (High) — ahead of normal actionable work (PM charter bands). Dispatch directive: direct Summit session, launched and verified by the orchestrator (this issue's comments carry the launch receipt).
Authoritative sources (read as ONE intake; precedence: Drew's current instructions → dated addendum refinements → v0.3 spec baseline → decision review proposals → historical inputs)
- Muse handoff — Fleet CA, Credentials & Secrets (Google Doc, modified 2026-11-12): https://docs.google.com/document/d/1yeSWQvMIer92zQ4lj99TsTH2oXZem0WfH-WMYKYJpJ0
- Fleet v0.3 complete package (
fleet_architecture_v0_3_complete.zip, SHA-256d853a2bacf391856a863c292b21f5a224352a6681dd81fe55c422040b1fb5644, internal SHA256SUMS all verified at intake): the governing 50-section spec (§§0–49 + Appendix A),SECRETS_BACKEND_RESEARCH_2026-11-06.md,DECISION_REVIEW_AND_NEXT_STEPS.md,fleet_agent_handoff_prompt_v0_3.md,source_input_3_architectural_perspective.txt. Drive: https://drive.google.com/file/d/1cdmoblf8yQM2NuXsR2i90N45dABU1EPo/view - Secrets addendum (architecture/performance/infrastructure follow-up, refines the package): https://docs.google.com/document/d/1QkQMPYGEHbjdyMBdrcSdo4i2GKxlJYK2S3PDrvCRfVw/edit
- Summit coordinator handoff (execution contract for this run): https://docs.google.com/document/d/1AKDACXObRcUwmJIeCfLaGv6bxcWC00e3rYjOztk4qiY/edit
- Companion PM charter (shared queue/dispatch conventions ONLY — the CA epic stays separate from PM implementation): https://docs.google.com/document/d/1_DQwNbuRmJnITDKKJJ7A3Q0FJa-q2rkzWlz-4PyA_iw/edit
All sources are merged into the repo design directory (see the docs PR linked in comments) and staged on the laptop at ~/.local/share/fleet/intake/fleet-ca-v03-20261112/ (zip hash re-verified after transfer). Repo pinned at intake: 6a7843cae59878e10071f27440b93489053dbc68 (2026-11-12).
Binding constraints (Drew)
- ML-DSA-44 is the baseline signature scheme for the CA design.
- The Merkle-tree experiment (Cloudflare MTC) is OPTIONAL — a separate, non-blocking controlled-stack research track; never a v1 dependency. (Handoff doc carries the full MTC analysis: inclusion proofs vs whole certs, landmark/cosigner provisioning, PQ-only separation, byte/CPU/latency comparison against the shortest conventional ML-DSA chain.)
Scope (from the handoff doc — the CA/credentials workstream, NOT the PM-stack redesign)
Unified secret records + BWS/op/bw adapters (three DIFFERENT provider products — never conflated); daily three-way reconciliation with recoverable zz.delete history and false-delete prevention; audit/event journal + provider performance benchmarks; fnox library evaluation (near-term priority); SOPS/age/NixOS integration; password, SSH and iroh generation; reusable Rust APIs + the existing Fleet multicall CLI (no competing tool); PKI root/issuer/leaf lifecycle, publication, packaging, client trust and verification; nonblocking OpenBao/federation/infrastructure research.
Reference PKI (spec controls): four independent roots (Ed25519, P-256, RSA, ML-DSA-44), nine asymmetric root cross-certificates (ML-DSA root never signs classical roots by default), Base + Internal Web issuer sets with independent A/B partitions and eligible direct issuer cross-signatures — 20 CA key pairs / 65 CA certificate variants before leaves. Reference expiries: roots 2050-07-07T12:00:00Z, both issuer sets 2032-07-07T12:00:00Z (distinct from the normal 20y/5y/90d defaults). RSA-2048 is a policy-gated compatibility option, not the default long-lived root. Root signing always requires an explicitly authorized signer source — never silently discover/exercise root keys.
Root custody (addendum refinement): initial roots escrowed to exactly three approved destinations — encrypted laptop storage, the authorized BWS project, the authorized 1Password vault — with integrity checks and tested restoration; NOT auto-extended to every future provider. R2 is a researched additional destination, not automatic authorization. Offline/hardware root signing is the future path; three OpenBao containers on one host are a lab, not three failure domains.
V1 — what exists today (intake census; the Summit verifies and deepens)
fleetmulticall (laptop build, source rev743966553e) domains: queue, serve, proxy, dispatch, secrets, gh, search, laptop-agent. Nocert/pkiorgeneratedomain exists yet.fleet secrets get|list: broker-first resolution with BWS fallback; name-only references; values never printed. The secrets broker is in production (see fleet(secrets-broker): serves stale secret value long after BWS rotation — read-through cache never invalidates #6767 for a known broker staleness defect). Noput, no reconciliation, no 1Password adapter in the CLI yet.pkgs/fleet/crates/: fleet, fleet-config, fleet-dispatch, fleet-proxy, fleet-proxy-proto, fleet-queue, fleet-registry, fleet-search, fleet-secrets.- No prior Fleet v0.3 / PKI / ML-DSA / fnox / zz.delete program issues exist (searched at intake) — this epic and its domain starters are the canonical home. The earlier submission was cancelled per the handoff; nothing was launched from it.
Safety gates (hard)
Design and synthetic proof only in this program phase. No production CA generation or signing, no root escrow/export, no live vault writes or reconciliation, no credential rotation, no DNS/trust changes, no live service deployment is authorized by this handoff. Synthetic fixtures must never be confused with production credentials. Design, synthetic proof, code implementation, and production rollout are separately statused.
Build-out (Summit owns; design-mill pattern)
Statement inventory (every requirement in the spec + addendum + handoffs, numbered, zero unmapped) → state-of-the-art expansion per component → versioned designs (V1 = exists today; V2+ layer) → ADRs/threat model → granular implementation/test/research issues with measurable acceptance, source IDs, boundaries, tests, rollback → batched questions recorded on THIS issue with chosen defaults (never stall). Domain starter issues are native sub-issues of this epic; the Summit files the granular children under them.
Supervision
Orchestrator check-ins on the bound Summit session (status, questions, artifacts vs the statement inventory); stall = one nudge, then replacement, recorded here. Durable monitor: the fleet's session-minder coverage plus the supervision record in this issue's comments.
P-384 ADR — merge remainder (lane oc-code-03, 2026-11-23)
Refs #13778 — the P-384 root-identity dated design-record PR is open (branch certprog/p384-adr, head da81369; two files: the new record folder plus one doc/README.md index line). The evidence record on #9163 (comment 7114665610) states READY TO MERGE. The lane does not merge; Archer merges via the GitHub API from that record. Bridging by cross-signing stays behind the production gate.
{"pm_meta": 1, "kind": "program-epic", "design_mill": {"run": "2026-11-12", "starter": true}, "urgency": 450, "route": "opencode-route/summit", "constraints": {"baseline_signature": "ML-DSA-44", "merkle_tree_experiment": "optional-nonblocking"}}
Refs #9160 — this domain starter is one of the Summit-owned design-mill tracks. Refs #9245 — this open draft PR carries the remaining design-mill work and is not yet landed.
Acceptance criteria
- Every build-out child under this epic is landed, or recorded with a named blocker and next action.
- The v0.3 statement inventory (from fleet-ca: repository census & v0.3 requirements traceability #9156) shows zero unmapped requirements at programme end.
- All safety gates named in the body held throughout: design/synthetic material only, no production CA, vault writes, or rotations.
- A completion record summarising what was designed, what was deferred, and why, is linked from this epic.
Activity
developing-today commentedon Nov 13, 2026
CODE-2852
82 remaining items
dezren39 commentedon Nov 23, 2026
Program execution ordered — Drew's rulings recorded (2026-11-23)
Drew has ordered this program executed end to end (2026-11-23 14:27 CST). The following rulings are his, recorded verbatim in substance, and govern the program from here:
fleet certsubcommand build-out, then work through the entire set end to end.Program coordination: CERT-PROGRAM coordinator (Archer-dispatched, 2026-11-23). Execution order, the PR #9245 disposition, and the production-gate map are posted in the companion comment that follows. The program's hard safety gate stands as Drew bounded it: design + synthetic proof proceeds everywhere; the single stop point is generation, escrow, or signing with the program's OWN production design roots — that slice stops, posts its gate state here, and is reported before anything executes. The already-live IdP CA's adoption, escrow completion, and restoration test are NOT behind that gate (it exists under Drew's direct order on #13658).
dezren39 commentedon Nov 23, 2026
Execution order + PR #9245 disposition + gate map (CERT-PROGRAM coordinator, 2026-11-23)
Intake complete: this epic and all eleven starters read in full; the governing spec read at §§3, 5.4, 6, 13, 24, 25, 27, 43–44; the CA-RECON records on #13658 (c.7112612951) and this issue (c.7112615008) read; draft PR #9245 inspected. The order below follows the spec's own phase logic (§13, phases A–J) re-sequenced by Drew's build order (rulings comment c.7113177173): the
fleet certbuild-out first, then the entire set end to end.PR #9245 disposition
Not landed as-is; the program's dependency on its merge is superseded (full reasoning posted on the PR itself). It is a self-described unfinished draft (final semantic audit pending; its owning Summit run is parked at an expert-ruling boundary; a digest approval was withdrawn as stale by its own author). It stays open as the design-completion track and lands on its own evidence. Its remaining work transfers into Phase 4 below as traceability work under #9156, and the coordinator confirms the Summit's recorded recommended defaults for the 8 outstanding ruling rows as working rulings (reversible by the design track) — the release path the Summit's park note itself proposed. The #9163/#9157 dependency blocks on this PR are lifted: implementation proceeds from the governing spec in the merged intake record on main.
Execution order
fleet certbuild-out (under fleet-ca: Rust crate, API & CLI architecture — registry, profiles, typed capabilities #9157; spec phases B–D). Newcertdomain in the fleet multicall (aliaspki), library-first per §6.4: foundations (algorithm registry incl. ML-DSA-44, §5.4 time grammar, generation/partition naming, bundle manifest schema), then the core verbs of the §6.1 tree — root / issuer / leaf / chain / bundle first,explain/doctoralongside.pkgs/idp-pki'sidp-caprofiles are the behavioural reference. Synthetic hierarchies only; the cross-signing graph is data/policy, never a hardcoded loop. Granular children filed under fleet-ca: Rust crate, API & CLI architecture — registry, profiles, typed capabilities #9157 for every verb group not in the first slice.fleet cert; AIA/CDP publication machinery (three-mirror profile, immutable paths, manifests, dry-run publisher, rollback); trust-store bundlesroots-all/roots-classical/roots-pq/cross-certsper §3.5; OCSP only behind a functional responder. Culminates in the §13 Phase H reference run performed entirely throughfleet cert— a synthetic four-root hierarchy with A/B issuer sets and leaves, validated independently (OpenSSL + Rust validators), as the program's end-to-end synthetic proof.idp-caretires intofleet cert).Gate map — the one gate
Behind the production gate (STOP, post gate state here, report before executing):
Explicitly NOT behind the gate (proceeds on Drew's order):
Phase-boundary reports land as comments on this issue: what landed (PR links), what was verified and how, what is next.
dezren39 commentedon Nov 23, 2026
Follow-up rulings + execution-order amendments (Drew, 2026-11-23 14:30 CST)
Recorded alongside the earlier rulings (c.7113177173); the execution order (c.7113208709) is amended as noted.
ca-root,ca-issuer,leaf-key,public-artifact). Placement in the execution order: the requirement is carried in Phase 2 (custody, fleet-ca: canonical secrets model, provider adapters & custody policy #9158/fleet-ca: PKI root bundle, cross-signing graph & root-key custody #9163) and implemented across Phase 1'sfleet certcrate and Phase 4's secrets phases (fleet-ca: reconciliation engine — three-way merge, zz.delete history, event journal & recovery #9159/fleet-ca: provider benchmarks & fnox / SOPS-age integration #9160) — the cert tooling resolves and deposits material through fleet-secrets interfaces rather than growing a parallel store.pkgs/idp-pki) is the primary CA for all other work: its issuing intermediate generates certificates for agents and other authentication needs. The workstream adds: leaf-issuance practice and profiles for agents and services off the issuing CA (the client/server profiles exist — extend as needed), distribution of the IdP root as the interim trust anchor where agents/services need it, and this role recorded on both story: our own OIDC/SAML/SSO identity provider #13658 and here. This raises the priority of the IdP CA's custody completion (1Password escrow + tested restoration) inside Phase 2.dezren39 commentedon Nov 23, 2026
Phase 1 boundary report —
fleet certfoundation landed (CERT-PROGRAM, 2026-11-23)Landed: PR #13720 merged to main as
f259a8f4ff5f5c15bf46990523f1195d07f7147f(verified by the coordinator against the GitHub API). Newfleet-certcrate inpkgs/fleet, registered as thecertdomain (aliaspki) in the fleet multicall, library-first per spec §6.4. Claim and completion are recorded on #9157 (c.7113245795, c.7114058039).Verb surface as landed:
root create|inspect|list|validate·issuer create|inspect|list·leaf issue|inspect|list·chain build|test·bundle inspect·profile list|show·algorithms list|describe·explain·doctor, with the foundations underneath: algorithm registry, §5.4 time grammar (Gregorian arithmetic; 20y/5y/90d defaults; explicit RFC 3339 expiries), §24.4 generation/partition naming, §7.1 bundle manifests with SHA-256 index verified on load. The cross-signing graph is data (GraphPolicyedge tables), not a hardcoded loop — default root set inventories at 13 certs / 4 keys (§3.2), an A+B issuer set at 26 certs / 8 keys (§24.2). §24.3 is enforced in the API: signing requires an explicitly passed signer source; no ambient key discovery. Leaf profiles mirroridp-ca's (server, client, saml-signing, oidc-signing).ML-DSA-44: SUPPORTED — no gap issue needed. Real FIPS 204 via rcgen 0.14 + aws-lc-rs with RFC 9881 identifiers (roots, cross-certs, issuers, leaves), independently verified by OpenSSL 3.5. One upstream limitation found and worked around in-crate: rcgen 0.14 cannot reload PQ keys (its PKCS#8 loaders have no PQ branch), so the crate carries an
MlDsa44Signerover aws-lc-rs implementing rcgen's public signer traits; recorded in the crate README and the key-ceremony child (#13726).Verification:
cargo test -p fleet-cert— 19 unit + 7 integration, all passing, with named oracles (the §§3.2/24.2 inventory arithmetic, the crate validator, system OpenSSL as independent validator incl. cross-signed and ML-DSA paths, the §24.1 legacy gate and §24.3 signer-source policy, §5.4 validity clamping, §7.1 tamper rejection, and the PQ-policy negative test: a classical leaf is rejected under PQ-only trust while the all-ML-DSA path validates).cargo test -p fleet -p fleet-registrygreen. Main-branch CI: the repo's fleet-rust-tests workflow has no push trigger (nightly + dispatch), so it was dispatched on main — run 45266145784 completed success with the hierarchy tests in the log. One real bug was found by the tests and fixed in-slice: chain building could route through a root cross-certificate and put two CAs below a pathlen:1 anchor; chain building is now iterative-deepening with path-length pruning.Backlog made explicit — twelve child issues under #9157 for the verb groups the foundation does not finish: #13721 revocation/CRL, #13722 OCSP, #13723 publication, #13724 DNS/CAA/DANE, #13725 trust bundles, #13726 key ceremony, #13727 format conversion, #13728 profile scaffolding, #13729 algorithm benchmarks/doctor depth, #13730 batch operations, #13731 cross-bundle inventory, #13732 renew/rotate/replace. Of these, #13721/#13723/#13725 (and OCSP #13722 behind a functional responder) are Phase 3 scope in the execution order; the rest are Phase 1 remainder / Phase 4 depth.
Gate state: untouched — synthetic material only, generated in temp dirs and never committed; no contact with the live IdP hierarchy; no vault writes.
Next: Phase 2, slice 1 — the IdP CA adoption package under #9158/#9163: register the IdP hierarchy in the program inventory (import/adopt record, §24.1(7)), complete its third escrow destination (1Password) with a tested restoration, and land the P-384 ADR. Priority per Drew's interim-primary ruling (c.7113495110): other work now depends on this hierarchy.
dezren39 commentedon Nov 23, 2026
Phase 2, slice 1 boundary report — IdP adoption package: custody complete; ADR routed (CERT-PROGRAM, 2026-11-23)
Lane CERT-P2 (claim on #9163, c.7114103570). Three of four deliverables complete; the fourth is routed, not dropped.
1. 1Password escrow — COMPLETE. The authorized vault was identified from fleet practice on the laptop (names only): the service account behind
fleet secretssees two vaults; Dev already holds the fleet's items mirroring BWS names, while the other holds a single auth-token item and no fleet material — Dev is unambiguously the fleet vault, and write access was proven with a synthetic probe item (created, read back, deleted) before any real payload moved. The encrypted root key, encrypted issuing key, and the passphrase now sit in Dev as three Document items mirroring the BWS names (idp.root-ca.key,idp.issuing-ca.key,idp.ca-passphrase— the passphrase included because a destination that cannot restore alone fails the design's tested-restoration requirement). SHA-256 equality was proven on the laptop before upload vs after read-back for all three payloads. No key or passphrase value appeared in any output, file, log, or comment.2. Tested restoration from 1Password alone — COMPLETE. Into a fresh temp dir on the laptop: fetched hashes matched the originals; both keys decrypted with the restored passphrase; the decrypted public keys match the published certificates; the certificate fingerprints match the published values (root
45:49:3A:F7…:D1:3D, issuingB6:9F:25:C5…:6A:42); one throwaway leaf signed with the restored issuing key verified full-chain under openssl; the temp dir was shredded file-by-file, removed, and verified gone. The IdP CA's custody is now 3/3 approved destinations with restoration tested — the state #9163's custody line requires.3. Adoption record — COMPLETE. On #9163 (c.7114322761): the §24.1(7) import/adopt registration — subjects, fingerprints, validity, P-384, tooling (
pkgs/idp-pki); keys never moved (laptop originals remain the working copies; BWS + 1Password hold escrow copies); the interim-primary role per Drew's ruling (c.7113495110); the custody/restoration evidence; and the P-384 decision summary.4. P-384 ADR document — STOPPED on a platform execution-risk flag; routed. A platform check fired on repo content retrieved during the lane and instructed no git/file operations inside that content; the lane stopped correctly rather than working around it. Nothing was written: a clean worktree waits on the laptop (
~/wt-certp2-p384, branchcertprog/p384-adr, at main). The ADR's decision is fully made and already recorded in summary in the adoption comment (adopt the P-384 root as a fifth root identity + bridge by cross-signing behind the production gate). The document itself — a dated design-record folder +doc/README.mdindex line, landed by PR — is being routed to a laptop-local session under the standing flag route (queue packet; the session composes the record from the decision already recorded on #9163, opens the PR without merging, and posts its evidence on #9163; the merge is finished from that record). The ADR's routing is noted here so the item is visibly in flight, not silently pending.Gate state: untouched — no production roots, no production signing; the only signing performed was the restoration test's throwaway leaf, destroyed with its temp dir.
dezren39 commentedon Nov 23, 2026
Lane oc-code-03 — P-384 ADR routing update (task 21521). Refs #13778 — the dated design-record PR is open (branch certprog/p384-adr at da81369, files: the new record folder plus one doc/README.md index line), evidence record posted on 9163 as c.7114665610 with READY TO MERGE stated. Lane does not merge; Archer merges via the GitHub API from that record. Bridging by cross-signing remains behind the production gate.
dezren39 commentedon Nov 24, 2026
AUDIT-7 Lane 5 (DESIGN-REVIEW, #13876) — verdict on the design of record (doc/2026-11-13T01-34-11Z_design_fleet_ca_credentials_secrets): sound.
feat(fleet-cert): key import and public-key export ceremonies (#15198)
feat(fleet-cert): stage publish plan to explicit local dir (#13723)
dezren39 commentedon Nov 29, 2026
🤖 Census note · lane CEN-C07, 2026-11-29 full issue census (firsthand recheck)
Verdict: blocked as an epic — execution is in flight under Drew's 2026-11-23 rulings; the hard production gates stay Drew-held by design.
Programme state (consolidated from this issue's own record):
fleet certfoundation (PR cert: fleet cert foundation — domain, engine, core verbs (#9157) #13720) — fleet-cert crate, cert domain in the multicall, ML-DSA-44 supported with independent OpenSSL verification; twelve verb-group children filed under fleet-ca: Rust crate, API & CLI architecture — registry, profiles, typed capabilities #9157 (cert: revocation + CRL verb group (§6.1) #13721–cert: renew/rotate/replace verb group (§6.1 remainder) #13732).certprog/p384-adr, head da81369) is READY TO MERGE per the evidence record on fleet-ca: PKI root bundle, cross-signing graph & root-key custody #9163 (comment 7114665610); per that record Archer merges it via the GitHub API — that merge is the epic's most concrete outstanding action. Bridging by cross-signing stays behind the production gate.AUDIT-7 observation answered in part: the ordered starter list (heads vs blocked) is being pinned by the 2026-11-29 census across #9156–#9167 — see the census notes on each starter today.
Census actions: added
priority/high— the body carries intrinsic urgency 450 (High) but no priority/* label existed. Keptstatus:to-do(programme state is the coordinator's call).dezren39 commentedon Nov 29, 2026
🤖 Census correction · lane CEN-C07, 2026-11-29
Correction to my census note above (comment 7257084684): I described the P-384 ADR PR as "READY TO MERGE … the epic's most concrete outstanding action". That is stale. Firsthand check of #9163's thread during this same census shows PR #13778 was MERGED on 2026-11-23 by Archer (merge commit
4e5f9ce24392d776311fd933402e303a3aa3a068, from the oc-code-03 evidence record, task 21521). The P-384 ADR is landed, not outstanding. The rest of the census note stands: Phase 1 landed, IdP custody 3/3 with tested restoration, production gates Drew-held by design.developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix): full recheck of this issue — body, all 53 comments, labels, and native blocked_by edges read firsthand; blocker states verified live today. A census note from lane CEN-C07 is already on this issue today; per Drewry's order I rechecked everything firsthand anyway — this comment is my own record and lists only what I verified or changed.
STRENGTHS
GAPS
FIXES I APPLIED
REMAINS
developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Second-pass census note (group code-09101-09459 audit). A first census note from lane CEN-C07/CEN-C08 is already on this issue today; this pass re-verified the live state, labels, body, and newest comments firsthand and applied the residual fixes below — it does not repeat the earlier note's verdict or blocker record, which stand.
Gaps found: No ## Acceptance criteria section; no effort/* label (programme epic).
Strengths found: Detailed, self-contained body with named parent/source and scope; a first census note from lane CEN-C07/CEN-C08 is already on this issue today (2026-11-29) with a firsthand verdict and blocker record, re-verified live by this pass.
What this pass did: Appended a ## Acceptance criteria section to the body (original text unchanged), formalising the acceptance seed/scope already stated in the body.