GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cert: fleet cert foundation — domain, engine, core verbs (#9157) by dezren39 · Pull Request #13720 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Phase 1 foundation slice of the fleet CA program (#9155), under the fleet cert build-out tracker #9157. Spec: fleet architecture spec v0.3, §§3, 5.4, 6, 7.1, 24, 26.

What lands

A new fleet-cert crate wired into the fleet multicall as the cert domain (alias pki), library-first per §6.4 — every verb is a thin shell over the crate API.

  • Foundations: algorithm registry (ed25519, p256, rsa-4096; rsa-2048 present but policy-gated per §24.1(1); ml-dsa-44 fully supported — FIPS 204 via rcgen + aws-lc-rs, RFC 9881 identifiers); §5.4 time grammar (Gregorian arithmetic, 20y/5y/90d defaults, RFC 3339 --not-after XOR --valid-for); §24.4 generation/partition naming; §7.1 bundle manifest schema with a SHA-256 artifact index verified on load.
  • Cross-signing as data: the §§3.2/24.2 signer→subject edge tables live in one GraphPolicy shared by root creation, issuer creation, inventory validation, and tests — including the asymmetry that ML-DSA signs no classical subject. Default root set: 4 keys → 13 certificates; default issuer set A+B: 8 keys → 26 certificates.
  • Verbs: 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. Text + --json; fleet exit-code contract.
  • Profiles mirror pkgs/idp-pki's idp-ca: server, client, saml-signing, oidc-signing.
  • §24.3 custody: signing requests carry a required signer source; root create must name its key destination before generating; no ambient key discovery anywhere.
  • ML-DSA reload workaround: rcgen 0.14 cannot reload PQ keys (no PQ branch in its PKCS#8 loaders), so the crate implements rcgen's public SigningKey/PublicKeyData traits over aws-lc-rs PqdsaKeyPair for reloaded ML-DSA signers.

Proof

  • cargo test -p fleet-cert: 19 unit + 7 integration tests, each naming its oracle — spec inventory arithmetic, the crate validator, system OpenSSL as an independent implementation (classical, ML-DSA, and cross-signed paths all verify), the §24.1/§24.3 policy gates, §5.4 clamping, §7.1 tamper rejection, and a PQ-policy negative test (classical leaf rejected under PQ-only trust; all-ML-DSA path validates).
  • cargo test -p fleet -p fleet-registry green (fleet bin 123+ tests incl. registry/help carve-outs).
  • Live smoke on synthetic material: full root → issuer → leaf hierarchies, chain test under all three trust selections, OpenSSL verification of built chains.

Not in this slice

Filed as child issues under #9157: revoke/crl, ocsp, publish, dns, trust, key, format, profile validate/scaffold, algorithms benchmark/doctor, batch, inventory, renew/rotate verbs, bundle pack/unpack/diff/migrate.

Synthetic key material only; no production keys, no contact with the live IdP hierarchy. Refs #9157, #9155 — both stay open.


Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
dezren39 added 4 commits November 23, 2026 14:48
@dezren39
cert: fleet-cert foundation — registry domain, algorithm registry, ti…
d6c168b
…me grammar, naming (#9157)

Phase 1 first slice of the fleet CA program (#9155), spec phases B
foundations (doc/2026-11-13T01-34-11Z_design_fleet_ca_credentials_secrets
§§5.4, 6.3, 24.1, 26):

- fleet-registry: Capability::Cert + the cert domain (alias pki in
  the argv0 map; fleet pki resolves to cert in the bin dispatch).
- fleet bin: cert feature (full build only), dispatch + own-usage
  help carve-out following the search/bridge patterns.
- New crates/fleet-cert library crate (library-first, §6.4):
  algorithm registry (ed25519, p256, rsa-4096 default set +
  ml-dsa-44 with RFC 9881 identifiers + rsa-2048 legacy-gated per
  §24.1(1); §6.3 alias grammar with dsa rejected as ambiguous),
  §5.4 time grammar (RFC3339 + Gregorian calendar durations with
  leap-day clamping), generation/partition naming (§5.2/§24.4).
- CLI: fleet cert algorithms list|describe working end to end.

ML-DSA-44 support is real, not stubbed: rcgen 0.14 + aws-lc-rs
generates/signs it and OpenSSL 3.5.9 verifies the chains (probe
evidence on #9157 lane record).
@dezren39
cert: issuance engine, cross-sign graph, profiles, bundle manifests (#…
071c966
…9157)

Library core of the Phase 1 slice (spec §§3, 5.4, 6.4, 7.1, 24):

- graph: the cross-signing graph as data/policy — §3.2 root and
  §24.2 issuer edge tables plus the roots-only/issuers-direct/both/
  none mode selector. The ML-DSA signer has no classical-subject
  edges; expected-inventory counts derive from the tables.
- profile: leaf profiles mirroring pkgs/idp-pki idp-ca (server,
  client, saml-signing, oidc-signing — key algorithm, usages, EKU,
  default validity, server SAN-from-CN behaviour).
- model: typed create/issue requests (signer source is a required
  request field, §24.3) and the fleet-cert-manifest/v1 bundle
  manifest schema (§7.1); algorithms x partitions slot resolution
  per §24.4 (Cartesian, or zipped repeats).
- bundle: bundle directories with per-file SHA-256 index, strict
  verified loading, 0600 private keys, PEM/base64 codecs.
- chain: x509-parser parsing + aws-lc-rs signature verification
  for all five registered algorithms; path building by raw-name +
  AKI/SKI with per-link cryptographic proof; validity/CA/pathlen
  checks; trust selections all/classical/pq with the §3.2 PQ-only
  path rule enforced at verification time.
- engine: root set creation (self-signed roots + policy cross
  certificates + §3.5 trust bundles), issuer set creation
  (independent A/B keys, direct cross-signed variants, validity
  clamped to the signer's window), leaf issuance. Manifest records
  are parsed back from the issued DER, never copied from requests.
@dezren39
cert: full CLI verb surface over the engine (#9157)
370b542
fleet cert (alias pki) verbs, each a thin shell over the library:
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.
Text and --json output throughout; exit codes follow the fleet
contract (0/2/1).

§24.3 enforced at the CLI boundary: issuer create requires
--root-key-dir, leaf issue requires --issuer-key-dir, and root
create must name its key destination (--private-store or
--private-in-bundle) before generating anything.

ML-DSA key reload: rcgen 0.14 cannot reload PQ keys (its PKCS#8
loaders have no PQ branch — the typed one panics), so the engine
carries an MlDsa44Signer implementing rcgen's public
SigningKey/PublicKeyData traits over aws-lc-rs PqdsaKeyPair.
Reloaded ML-DSA roots/issuers sign through the same Issuer
machinery as classical keys; verified live in the smoke run
(issuer set with the exact §24.2 inventory: 8 keys, 26 certs).
@dezren39
cert: integration tests + crate README; shortest-path chain building (#…
a79e6c9
…9157)

tests/hierarchy.rs builds full synthetic hierarchies through the
library API and checks them against named oracles: §§3.2/24.2
inventory arithmetic (13 root certs, 26 issuer certs, 8 keys), the
crate validator, the system openssl as an independent
implementation (classical, ML-DSA, and cross-signed paths), the
§24.1 legacy gate and §24.3 signer-source rule, §5.4 validity
clamping, and §7.1 manifest tamper rejection. The PQ negative
test proves a classical leaf is rejected under PQ-only trust
while an all-ML-DSA path validates.

Chain building becomes iterative-deepening with path-length
pruning: routing a P-256 issuer through a root cross-certificate
puts 2 CA certificates below a pathlen:1 anchor — genuinely
invalid — while the directly cross-signed issuer variant is
shorter and valid. The search now finds the valid path instead
of reporting whichever path fingerprint order surfaced first.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 49 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bcd37ab8-1c5a-4e18-9707-8e64f7c4b998
Commits

Reviewing files that changed from the base of the PR and between c1bd568 and a79e6c9.

Files ignored due to path filters: 1

  • pkgs/fleet/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 20

  • pkgs/fleet/Cargo.toml
  • pkgs/fleet/README.md
  • pkgs/fleet/crates/fleet-cert/Cargo.toml
  • pkgs/fleet/crates/fleet-cert/README.md
  • pkgs/fleet/crates/fleet-cert/src/algorithm.rs
  • pkgs/fleet/crates/fleet-cert/src/bundle.rs
  • pkgs/fleet/crates/fleet-cert/src/chain.rs
  • pkgs/fleet/crates/fleet-cert/src/cli.rs
  • pkgs/fleet/crates/fleet-cert/src/engine.rs
  • pkgs/fleet/crates/fleet-cert/src/error.rs
  • pkgs/fleet/crates/fleet-cert/src/graph.rs
  • pkgs/fleet/crates/fleet-cert/src/lib.rs
  • pkgs/fleet/crates/fleet-cert/src/model.rs
  • pkgs/fleet/crates/fleet-cert/src/naming.rs
  • pkgs/fleet/crates/fleet-cert/src/profile.rs
  • pkgs/fleet/crates/fleet-cert/src/timeparse.rs
  • pkgs/fleet/crates/fleet-cert/tests/hierarchy.rs
  • pkgs/fleet/crates/fleet-registry/src/lib.rs
  • pkgs/fleet/crates/fleet/Cargo.toml
  • pkgs/fleet/crates/fleet/src/main.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 23, 2026
cert: revocation + CRL verb group (§6.1) #13721
Closed
cert: OCSP verb group (§6.1) #13722
Closed
cert: publish verb group (§6.1) #13723
Open
cert: dns verb group — CAA + DANE planning (§6.1) #13724
Open
cert: trust verb group — bundle assembly + pinning (§6.1) #13725
Closed
cert: key ceremony verb group (§6.1) #13726
Open
cert: format conversion verb group (§6.1) #13727
Closed
cert: profile validate/scaffold (§6.1 remainder) #13728
Closed
cert: algorithms benchmark + doctor depth (§6.1 remainder) #13729
Closed
cert: batch operations (§6.1) #13730
Closed
cert: inventory verb group (§6.1) #13731
Closed
cert: renew/rotate/replace verb group (§6.1 remainder) #13732
Closed
@dezren39
dezren39 merged commit f259a8f into main Nov 23, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the certprog/fleet-cert-foundation branch November 23, 2026 21:04
This was referenced Nov 23, 2026
fleet-ca: Rust crate, API & CLI architecture — registry, profiles, typed capabilities #9157
Open
Fleet CA, credentials & secrets — v0.3 design mill (Summit build-out) #9155
Open
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
@dezren39 dezren39 mentioned this pull request Nov 24, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 24, 2026
cert: OCSP verb group (sign | inspect | test) + ocsp-responder profile (#13722) #14316
Merged
@dezren39 dezren39 mentioned this pull request Nov 25, 2026
cert: implement profile validate/scaffold (§6.1 remainder, #13728) #14739
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.