[core] PKI: the Domi CA from the shared crate domi-pki v1.0.0 #9

Manually merged
mnovak merged 0 commits from feature/domi-pki into main 2026-11-17 12:37:34 +01:00
Owner

The Domi CA moves to the shared public crate domi-pki v1.0.0 (Fabrica docs/32_coherence.md, T3a), so Fabrica can issue Legatus agent certificates without Ianitor. Behaviour unchanged.

What

  • crates/core/src/pki.rs is Ianitor's view of domi-pki: the same public API (create_root, sign_intermediate, Intermediate, issue_server, issue_device, inspect, issued_by, intermediate_problem, match_code, the openssl profile, the placeholder, testing), the same PkiError and messages (mapped from domi-pki's), and the encrypted-key format kept here (Ianitor's storage, not the CA).
  • Cargo: domi-pki by git tag v1.0.0; core drops its direct rcgen, x509-parser and time dependencies.
  • Nix: cargoLock.outputHashes."domi-pki-1.0.0" in deploy/nixos/package.nix (the NAR hash of the tag's tree; the script that computed it reproduces CustosPublic's flake.lock narHash exactly).
  • CLAUDE.md layout line; ROADMAP handover entry.

Tests: no test file changed. Windows: core 103 (pki 15), control 21, edge 31, diff 2, testkit 1: the same counts as the last handover.

Self-review (adversarial)

  • Could a message change? PkiError stays Ianitor's own enum with the same texts; domi-pki's new variants (Signer, UnsupportedKey, WrongIntermediate) cannot arise from Ianitor's calls with local P-256 keys and map to Build/BadKey.
  • CertInfo gains a uris field (re-exported from domi-pki): nothing in Ianitor builds a CertInfo literal.
  • domi-pki now verifies every signature it makes before returning a certificate: stricter, never looser.
  • Not verified: nix build .#ianitor, nix flake check and the Linux-only Rust suites (WSL2 Debian has no disk on this PC: E:\WSL\Debian\ext4.vhdx is missing). T4 runs them first.
The Domi CA moves to the shared public crate [domi-pki](https://gitea.marek-novak.cz/mnovak/domi-pki) v1.0.0 (Fabrica docs/32_coherence.md, T3a), so Fabrica can issue Legatus agent certificates without Ianitor. Behaviour unchanged. **What** - `crates/core/src/pki.rs` is Ianitor's view of domi-pki: the same public API (`create_root`, `sign_intermediate`, `Intermediate`, `issue_server`, `issue_device`, `inspect`, `issued_by`, `intermediate_problem`, `match_code`, the openssl profile, the placeholder, `testing`), the same `PkiError` and messages (mapped from domi-pki's), and the encrypted-key format kept here (Ianitor's storage, not the CA). - Cargo: `domi-pki` by git tag `v1.0.0`; core drops its direct rcgen, x509-parser and time dependencies. - Nix: `cargoLock.outputHashes."domi-pki-1.0.0"` in `deploy/nixos/package.nix` (the NAR hash of the tag's tree; the script that computed it reproduces CustosPublic's flake.lock `narHash` exactly). - CLAUDE.md layout line; ROADMAP handover entry. **Tests:** no test file changed. Windows: core 103 (pki 15), control 21, edge 31, diff 2, testkit 1: the same counts as the last handover. **Self-review (adversarial)** - Could a message change? `PkiError` stays Ianitor's own enum with the same texts; domi-pki's new variants (`Signer`, `UnsupportedKey`, `WrongIntermediate`) cannot arise from Ianitor's calls with local P-256 keys and map to `Build`/`BadKey`. - `CertInfo` gains a `uris` field (re-exported from domi-pki): nothing in Ianitor builds a `CertInfo` literal. - domi-pki now verifies every signature it makes before returning a certificate: stricter, never looser. - **Not verified:** `nix build .#ianitor`, `nix flake check` and the Linux-only Rust suites (WSL2 Debian has no disk on this PC: `E:\WSL\Debian\ext4.vhdx` is missing). T4 runs them first.
mnovak added 1 commit 2026-11-17 12:36:39 +01:00
mnovak manually merged commit 00b506670f into main 2026-11-17 12:37:34 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/ianitor#9