GeezerVison is showing github.com — cert: key ceremony verb group (§6.1) · Issue #13726 · developing-today/code
cert: key ceremony verb group (§6.1) #13726DescriptionChild of #9157 (fleet cert build-out, program #9155). Foundation landed in PR #13720: the fleet-cert crate, bundle format (fleet-cert-manifest/v1), chain validator, and the core create/inspect/list verbs exist; this issue is the remaining verb group.
Scope (spec §6.1, §24.3): fleet cert key generate|inspect|export|escrow|restore|rotate — standalone key ceremonies decoupled from certificate creation, escrow/restore round-trips (test escrow integrations are ungated per Drew 2026-11-23; production root escrow is gated, #9155 comment 7113208709). Includes the rcgen ML-DSA reload workaround note: fleet-cert carries an MlDsa44Signer because rcgen 0.14 cannot reload PQ keys — revisit if upstream lands PQ loaders. Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 24, 2026 Triage (oc-code-01, 2026-11-24): foundation PR #13720 is merged, so the prerequisite holds. The remaining work is the fleet cert key verb group (generate, inspect, export, escrow, restore, rotate) with escrow round-trip tests. That is an implementation slice that needs a worktree and a fleet build, which this lane's shell leg cannot run. Left open for an implementation session. dezren39 commented on Nov 24, 2026 Verify-and-route (oc-code-05, 2026-11-24, queue task 23394): issue is OPEN, no linked PR, no competing claim. Triage comment (oc-code-01, 10:49Z) confirms the prerequisite PR #13720 is merged and sizes the remaining work as the fleet cert key verb group (generate, inspect, export, escrow, restore, rotate) with escrow round-trip tests. Verdict: real implementation work, still open, not resolved in substance. Route: implementation slice needing a worktree and a fleet build; oc-code-05's shell leg cannot run builds, so it stays open for a session with a build path. Follow-on: the existing open issue is the handoff record; no duplicate issue filed. dezren39 commented on Nov 24, 2026 Picked up implementation follow-on task 23572 (lane code-j, 2026-11-24). Starting with standalone in branch , using the existing engine algorithms and explicit private-key destination; will add a durable regression test and verify via Fleet Actions build/test. dezren39 commented on Nov 24, 2026 Correction to my pickup note: I meant standalone fleet cert key generate|inspect in branch code-j/13726-key-ceremony, using existing engine algorithms and an explicit private-key destination; I will add a durable regression test and verify via Fleet Actions build/test. dezren39 commented on Nov 24, 2026 Implementation progress (code-j, queue task 23572): first slice is pushed in draft PR #14476 (fleet cert key generate|inspect). Generation uses PKCS#8 DER, refuses overwrite, and uses owner-only mode on Unix; inspect emits public-key metadata only. Regression test covers generate/inspect/overwrite/mode. Fleet Actions cargo test -p fleet-cert run 45437490133 is still in progress; I will update with its result. dezren39 commented on Nov 24, 2026 Follow-up on PR #14476 / task 23572: run 45439250107 confirmed the Fleet workspace needs PrivatePkcs8KeyDer at rcgen\x27s classical-key loader. Fixed in commit 7effe8c and pushed to the PR branch. Redispatched cd pkgs/fleet && cargo test -p fleet-cert; awaiting the new Fleet run result. dezren39 commented on Nov 24, 2026 Updated branch and verification: commit 7effe8c fixes the rcgen PrivatePkcs8KeyDer API mismatch found by run 45439250107. The corrected cd pkgs/fleet && cargo test -p fleet-cert is now running as Fleet run 45441311078. PR #14476 remains draft pending the result. dezren39 commented on Nov 24, 2026 Verification update: Fleet run 45441311078 compiled the updated crate and passed all 25 library tests, including key_ceremony_tests::generate_creates_private_file_once_and_inspect_redacts_material. The full cargo test -p fleet-cert command failed at the hierarchy integration test openssl_independent_validation, specifically the ML-DSA OpenSSL verification assertion; other hierarchy tests passed. I have dispatched the focused key test with openssl version for an isolated result and environment evidence. dezren39 commented on Nov 24, 2026 Focused verification is dispatched as Fleet run 45442974443: runner OpenSSL version plus the key generate/inspect regression test. This separates the implementation test from the full suite’s ML-DSA/OpenSSL integration failure in 45441311078. dezren39 commented on Nov 24, 2026 First vertical slice is ready for review in PR #14476: fleet cert key generate and fleet cert key inspect. Fleet run 45441311078 compiled the crate and passed all 25 library tests, including key_ceremony_tests::generate_creates_private_file_once_and_inspect_redacts_material. Focused Fleet run 45442974443 passed the isolated regression (1 passed; 24 filtered out) and reports OpenSSL 3.0.13. The full package run’s only failure was the existing openssl_independent_validation ML-DSA assertion in the hierarchy integration test; this environment lacks an openssl executable, so that OpenSSL validation remains unverified and is not attributed to this slice. Import/export/escrow/restore/rotate remain outside this slice and still open under #13726. dezren39 commented on Nov 24, 2026 Outcome (lane oc-code-07, queue task 23572, 2026-11-24): first vertical slice merged — PR #14476, merge commit 352f56e.
Landed verbs: fleet cert key generate (PKCS#8 DER, create-new only, 0600 on Unix) and fleet cert key inspect (public-key metadata only, private material redacted). Engine gains inspect_key over P256/Ed25519/RSA/ML-DSA-44 and the ML-DSA public-key accessor.
Verification (Fleet dispatch): cd pkgs/fleet && cargo test -p fleet-cert run 45441311078 — crate compiled, 25/25 library tests passed including key_ceremony_tests::generate_creates_private_file_once_and_inspect_redacts_material. Focused rerun 45442974443 — success, 1 passed / 24 filtered, runner OpenSSL 3.0.13. The full-suite run's only failure is the pre-existing openssl_independent_validation ML-DSA assertion in the hierarchy integration test (untouched by this slice; this environment lacks an openssl executable).
Outstanding on this issue: import/export/escrow/restore/rotate, plus escrow/restore round-trip tests. This issue stays open and remains the source of truth. dezren39 commented on Nov 25, 2026 Claimed by lane 10, 2026-11-25T19:20Z. Taking the next slice: fleet cert key export and fleet cert key escrow/restore with a test escrow round-trip.
Generated by Claude Code dezren39 commented on Nov 25, 2026 Second slice merged: #15198 (squash 1fbff00).
Landed verbs: fleet cert key import (PKCS#8 DER or a PEM PRIVATE KEY block, refused unless it loads under the named --algorithm, written create-new and owner-only) and fleet cert key export (public half only, as SubjectPublicKeyInfo PEM or DER).
Verification: GitHub-hosted fleet-rust-tests run 45683767196 on the PR head passed the whole fleet workspace, including the new tests; the SPKI test compares the exported bytes with the SPKI rcgen writes into a self-signed certificate for Ed25519, P-256, RSA and ML-DSA-44.
Still open on this issue: private-key export, escrow/restore (with the round-trip tests) and rotate. Escrow needs an encryption and custody format choice under the #9155 gates, so it is left for a design-backed slice.
Generated by Claude Code dezren39 commented on Nov 25, 2026 Claimed by lane 10, 2026-11-25T21:20Z. Taking fleet cert key rotate only: a fresh key of the same algorithm written beside the old one, which stays untouched, with both fingerprints in the receipt. Private-key export and escrow/restore stay open for a design-backed slice.
Generated by Claude Code dezren39 commented on Nov 25, 2026 Third slice merged: #15258 (squash d19da41).
Landed verb: fleet cert key rotate --algorithm <alg> --in <old> --out <new>. The old key must load under the named algorithm before anything is written; a fresh key of that algorithm goes to a new owner-only PKCS#8 DER file, and the receipt carries both public-key fingerprints. The old file is never touched or replaced, and a successor that matched the old public key would be refused (spec V3-S19: rotation is a new key, never a reuse). Retiring the old key is a separate step.
Verification: GitHub-hosted fleet-rust-tests run 45703223519 on the PR head passed the whole fleet workspace, including rotate_writes_a_fresh_key_and_keeps_the_old_one (Ed25519 and P-256: old file unchanged, new key differs and is 0600, neither path can be overwritten, a wrong-algorithm key writes nothing).
Still open here: private-key export and escrow/restore, which need an encryption and custody format choice under the #9155 gates.
Generated by Claude Code developing-today-fleet commented on Nov 26, 2026 🤖 Agent note · verify-and-route pass (lane code-h, queue task 24566)
dezren39 commented on Nov 27, 2026 Lane 1937-K (queue task 25802, 2026-11-26 alpha DRIVE): premise + ownership re-check.
Verified firsthand from main and this issue's full comment history:
Disposition: NOT workable as a small fix in this lane — inventing a custody/encryption format unilaterally would be a design decision, not an implementation slice. Parked queue task 25802 with ready-condition = a design record (on #9155 or a child issue) naming the escrow format (encryption primitive/KDF, file format, passphrase/custodian model) for test escrow; once that lands, escrow/restore is a straightforward implementation slice following the generate/import/rotate patterns in cli.rs.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|