Repository navigation
docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) - #174
Conversation
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) (#174)Decision: 🟢 Approved Executive summaryThis proposed ADR selects a pure-Rust ML-DSA dependency only after the documented constant-time fixes reach a published release, preserving the pre-authentication signing-path requirement. It remains consistent with RFC-0012’s composite-only, hedged-signing, zeroization, exact-pin, and atomic-cutover requirements. No findings meet the reporting threshold. Upstream release, advisory, and API assertions could not be independently verified without network access. Decision: 🟢 Approved |
PR Review: docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) (#174)Decision: 🟢 Approved Executive summaryADR-0035 selects Verification note
New findingsNone. No issue reached the ≥ 80 reporting threshold. Every candidate I examined was either a sub-threshold wording nit (e.g. the "nothing there is duplicated" phrasing in Decision: 🟢 Approved |
PR Review: docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (#174)Decision: 🟡 Minor changes Executive summaryADR-0035 selects New findings🟡 Important (should be resolved)[docs/adr/0035-ml-dsa-crate-rustcrypto.md:63–71] — incomplete feature justification / unspecified randomness bridge (confidence: 82)
|
… (sys_rng) claude-review on #174: the feature list justified only pkcs8, and hedged signing named no concrete CryptoRng. - Decision 2 now gives each enabled and dropped feature its own reason (rand_core gates sign_randomized; getrandom stays off to keep one OS randomness path; alloc is unused by the composite's surface). - Decision 3 names the RNG: getrandom::SysRng from the workspace's existing getrandom 0.4 dependency via its sys_rng feature, which implements rand_core 0.10 TryCryptoRng with no new crate (rand_core 0.10.1 is already in Cargo.lock). Verified end to end with ml-dsa 0.1.1 and getrandom 0.4.3 in a scratch crate. - Records the rejected sign_internal path (upstream marks it test-only) and a first-party adapter. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) (#174)Decision: 🟢 Approved Executive summaryADR-0035 selects RustCrypto Previous issues
New findingsNone. No issue reached the reporting threshold. Decision: 🟢 Approved |
PR Review: docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) (#174)Decision: 🟢 Approved Executive summaryADR-0035 selects Previous issues
Verification noteChecked against primary sources, all consistent with the ADR:
New findings💡 Suggestions (nice to have)
Decision: 🟢 Approved |
PR Review: ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (#174)Decision: 🟡 Minor changes Executive summaryADR-0035 is well-reasoned: crate selection is sound, the constant-time version-pin is correctly fail-closed, the five MANIFIESTO commitments are satisfied, and the feature set is now fully justified. Two design gaps need addressing before the ADR should flip to Accepted: the pre-auth signing path needs its RNG-failure behavior specified, and the version rule needs to explicitly exclude pre-releases. Previous issues
New findings🟡 Important (should be resolved)[docs/adr/0035:81–89] — unspecified fail behavior on the pre-auth signing path (confidence: 85)
[docs/adr/0035:56–62] — version rule admits pre-releases (confidence: 80)
|
claude-review round 2 on #174: - Version rule: the first stable (non-pre-release) ml-dsa release that contains RustCrypto/signatures#1386. - Decision 3: SysRng is fallible, so host-key signing becomes fallible (HostKey::sign returns Vec<u8> today, host_key.rs:165); an RNG error aborts the key exchange with SSH_DISCONNECT_KEY_EXCHANGE_FAILED, the path kex.rs already takes for getrandom failures, and never panics. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
|
I have everything needed. Verified: all three commits report PR Review: docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) (#174)Decision: 🟢 Approved Executive summaryADR-0035 selects Previous issues
Verified against the current file at Verification note
New findingsNo issue reached the ≥80 reporting threshold. Two sub-threshold suggestions are recorded for completeness. 💡 Suggestions (nice to have)
Decision: 🟢 Approved |
…e erasure gap opencode review #3 suggestions on #174 (below its threshold, applied): - Decision 5: the implementation PR runs NIST ACVP ML-DSA-44 keyGen, sigVer and deterministic sigGen vectors (and the LAMPS composite vectors where published), as ADR-0019 required for ML-KEM. - Negative: ml-dsa 0.1.1's zeroize feature does not reach its shake dependency (declared default-features = false), so the SHAKE sponge state is not erased; recorded as within threat-model 4.3's best-effort erasure. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
PR Review: docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) (#174)Decision: 🟡 Minor changes Executive summaryADR-0035 selects Previous issues
New findings🟡 Important (should be resolved)docs/adr/0035-ml-dsa-crate-rustcrypto.md:115-116 — conformance vectors name the wrong signing API (confidence: 82)
💡 Suggestions (nice to have)
Verification noteChecked against primary sources, all consistent with the ADR: |
opencode review #4 on #174: ACVP sigGen vectors are defined against FIPS 204's internal interface, so sign_deterministic (external framing) cannot reproduce them. Decision 5 now names the calls upstream's own harness uses at ml-dsa/v0.1.1: from_seed for keyGen, sign_internal for sigGen (deterministic with zeroed rnd and hedged with the vector's rnd), verify_internal for sigVer, in tests only. The production framing (sign_randomized with ctx and the composite M') is covered by the LAMPS composite vectors where published and end to end by the ADR-0020 OpenSSH interop gate. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
PR Review: ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (#174)Decision: 🟢 Approved Executive summaryADR-0035 selects Previous issues
Verified against the current file at New findingsNo issue reached the ≥80 reporting threshold. One sub-threshold suggestion is recorded for completeness. 💡 Suggestions (nice to have)
Verification noteChecked against primary sources, all consistent with the ADR:
Decision: 🟢 Approved |
…CVP harness opencode review #5 suggestion on #174: the ACVP vectors carry expanded signing keys, loaded through ExpandedSigningKey::from_expanded, which upstream deprecates and wraps in allow(deprecated) in its own harness. Item 5 now records the same test-only use and what happens if upstream gates or removes it. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
|
Reviewer findings in general comments, rounds 3–5. The inline threads from claude-review were answered and resolved one by one.
Codex |
PR Review: docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) (#174)Decision: 🟢 Approved Executive summaryADR-0035 selects Previous issues
New findingsNo issue reached the ≥80 reporting threshold. Verification noteChecked against primary sources, all consistent with the ADR:
Decision: 🟢 Approved |
…nes, present vs future controls) claude-review on #177: - 'The 4.x/2.x line has had no release since mid-2024' was false for ed25519-dalek 2.2.0 (2025-07-09); now scoped per crate. - The diff is two manifest lines (zeroize/alloc belongs to #175). - The Verus-loss paragraph listed Phase-3 fuzzing as a present control; present controls (RFC 7748 vectors, OpenSSH interop gate) are now separated from the future one, and the text says nothing currently replaces the formal guarantee. opencode suggestions on #177 and #179: - Refers to 'the ml-dsa ADR proposed in #174' instead of citing the not-yet-permanent number ADR-0035 as established. - pkcs8/der/spki leave Cargo.lock (they are not compiled today). - The RFC-0003 licence sentence lives in its Guide-level explanation. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
…nes, present vs future controls) claude-review on #177: - 'The 4.x/2.x line has had no release since mid-2024' was false for ed25519-dalek 2.2.0 (2025-07-09); now scoped per crate. - The diff is two manifest lines (zeroize/alloc belongs to #175). - The Verus-loss paragraph listed Phase-3 fuzzing as a present control; present controls (RFC 7748 vectors, OpenSSH interop gate) are now separated from the future one, and the text says nothing currently replaces the formal guarantee. opencode suggestions on #177 and #179: - Refers to 'the ml-dsa ADR proposed in #174' instead of citing the not-yet-permanent number ADR-0035 as established. - pkcs8/der/spki leave Cargo.lock (they are not compiled today). - The RFC-0003 licence sentence lives in its Guide-level explanation. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
…ther (Proposed) (#177) * docs(adr): ADR-0036 — move ed25519-dalek and x25519-dalek to 3.x together (Proposed) The coordinated bump the #109 comment of 2026-07-18 deferred, subsidiary to RFC-0003. Evaluates the four points that comment asked for: API (ed25519-dalek 3 drops std; no first-party code change needed), zeroize and static_secrets (kept; x25519 secrets now erase on drop only), MSRV (1.85, below the workspace's 1.92), and maturity/audit (no advisory on either line; Verus coverage applies to curve25519-dalek 4.1.3, not 5.0; no known public audit of 5.0/3.0). States the value plainly: no vulnerability fixed; Cargo.lock 102 -> 88, no duplicated crates in quantumssh-core, signature 3 aligned with ADR-0035's ml-dsa. Records that the dalek crates are BSD-3-Clause (RFC-0003 says Apache-2.0 or MIT; deny.toml allows BSD-3-Clause). Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0036 — review fixes (2.x release date, two manifest lines, present vs future controls) claude-review on #177: - 'The 4.x/2.x line has had no release since mid-2024' was false for ed25519-dalek 2.2.0 (2025-07-09); now scoped per crate. - The diff is two manifest lines (zeroize/alloc belongs to #175). - The Verus-loss paragraph listed Phase-3 fuzzing as a present control; present controls (RFC 7748 vectors, OpenSSH interop gate) are now separated from the future one, and the text says nothing currently replaces the formal guarantee. opencode suggestions on #177 and #179: - Refers to 'the ml-dsa ADR proposed in #174' instead of citing the not-yet-permanent number ADR-0035 as established. - pkcs8/der/spki leave Cargo.lock (they are not compiled today). - The RFC-0003 licence sentence lives in its Guide-level explanation. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0036 — ed25519-dalek 3's runtime vs optional/dev dependencies opencode review #2 suggestion on #177: getrandom 0.4 is a dev-dependency of ed25519-dalek 3.0.0, and rand_core 0.10 and signature 3 are optional there (signature 3 still enters through ed25519 3, a normal dependency). The API bullet now names the runtime moves only. Verified against the crates.io dependency metadata of ed25519-dalek 3.0.0 and ed25519 3.0.0. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0036 — yanked 4.2.0 and licence cell wording opencode suggestions on #177 (review #3) and #179 (review #2): - curve25519-dalek 4.2.0 was published 2025-07-09 and yanked; both maintenance statements now say 'no usable 4.x release since 2024-06-18' and name it (verified on crates.io). - The licence cell said 'all six' with no referent; it now says 'all three crates'. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0036 — cite RFC-0003's Guide-level explanation for the primitive stack opencode suggestion on #179 (review #3): RFC-0003 section 'Operational dependencies of this decision' only lists four follow-up ADRs and never mentions the dalek crates; the primitive stack (with x25519-dalek and ed25519-dalek) is in its Guide-level explanation. Related and Links now point there, consistent with the licence note. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> --------- Signed-off-by: Gonzalo Fleming <[email protected]>
…-dalek 5) (#179) * docs(adr): ADR-0036 — move ed25519-dalek and x25519-dalek to 3.x together (Proposed) The coordinated bump the #109 comment of 2026-07-18 deferred, subsidiary to RFC-0003. Evaluates the four points that comment asked for: API (ed25519-dalek 3 drops std; no first-party code change needed), zeroize and static_secrets (kept; x25519 secrets now erase on drop only), MSRV (1.85, below the workspace's 1.92), and maturity/audit (no advisory on either line; Verus coverage applies to curve25519-dalek 4.1.3, not 5.0; no known public audit of 5.0/3.0). States the value plainly: no vulnerability fixed; Cargo.lock 102 -> 88, no duplicated crates in quantumssh-core, signature 3 aligned with ADR-0035's ml-dsa. Records that the dalek crates are BSD-3-Clause (RFC-0003 says Apache-2.0 or MIT; deny.toml allows BSD-3-Clause). Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * fix(deps): declare zeroize's alloc feature explicitly Zeroizing<Vec<u8>> (kex.rs, auth.rs, transport.rs) and Zeroizing<String> need zeroize's alloc feature. The workspace never declared it: it arrives only through feature unification from ed25519-dalek's std feature (ed25519-dalek/std -> alloc -> zeroize?/alloc and curve25519-dalek/alloc). Dropping std from ed25519-dalek, as its 3.x line requires, would break the build in 35 places with no code change of ours. Declare it where it is used. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * chore(deps): move ed25519-dalek and x25519-dalek to 3.0.0 (curve25519-dalek 5) Implements ADR-0036. ed25519-dalek drops the removed std feature and the unused rand_core feature; x25519-dalek keeps static_secrets and zeroize. No first-party code change. Cargo.lock: 102 -> 88 packages; cargo tree -d -e normal -p quantumssh-core prints nothing (was sha2, digest, rand_core, block-buffer, crypto-common, cpufeatures in two versions each). fmt, clippy -D warnings, test --workspace (34 + 103 + 35) and build --release pass. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0036 Accepted with the implementing PR #179 Flips Status to Accepted inside the implementing PR (repo pattern since #128), points Links/Decision at #179, and historicises the three drafting-time phrasings (table header, advisory sentence, ADR-0035 availability). Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0036 — review fixes (2.x release date, two manifest lines, present vs future controls) claude-review on #177: - 'The 4.x/2.x line has had no release since mid-2024' was false for ed25519-dalek 2.2.0 (2025-07-09); now scoped per crate. - The diff is two manifest lines (zeroize/alloc belongs to #175). - The Verus-loss paragraph listed Phase-3 fuzzing as a present control; present controls (RFC 7748 vectors, OpenSSH interop gate) are now separated from the future one, and the text says nothing currently replaces the formal guarantee. opencode suggestions on #177 and #179: - Refers to 'the ml-dsa ADR proposed in #174' instead of citing the not-yet-permanent number ADR-0035 as established. - pkcs8/der/spki leave Cargo.lock (they are not compiled today). - The RFC-0003 licence sentence lives in its Guide-level explanation. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0036 — review fixes (2.x release date, two manifest lines, present vs future controls) claude-review on #177: - 'The 4.x/2.x line has had no release since mid-2024' was false for ed25519-dalek 2.2.0 (2025-07-09); now scoped per crate. - The diff is two manifest lines (zeroize/alloc belongs to #175). - The Verus-loss paragraph listed Phase-3 fuzzing as a present control; present controls (RFC 7748 vectors, OpenSSH interop gate) are now separated from the future one, and the text says nothing currently replaces the formal guarantee. opencode suggestions on #177 and #179: - Refers to 'the ml-dsa ADR proposed in #174' instead of citing the not-yet-permanent number ADR-0035 as established. - pkcs8/der/spki leave Cargo.lock (they are not compiled today). - The RFC-0003 licence sentence lives in its Guide-level explanation. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0036 — ed25519-dalek 3's runtime vs optional/dev dependencies opencode review #2 suggestion on #177: getrandom 0.4 is a dev-dependency of ed25519-dalek 3.0.0, and rand_core 0.10 and signature 3 are optional there (signature 3 still enters through ed25519 3, a normal dependency). The API bullet now names the runtime moves only. Verified against the crates.io dependency metadata of ed25519-dalek 3.0.0 and ed25519 3.0.0. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0036 — yanked 4.2.0 and licence cell wording opencode suggestions on #177 (review #3) and #179 (review #2): - curve25519-dalek 4.2.0 was published 2025-07-09 and yanked; both maintenance statements now say 'no usable 4.x release since 2024-06-18' and name it (verified on crates.io). - The licence cell said 'all six' with no referent; it now says 'all three crates'. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0036 — cite RFC-0003's Guide-level explanation for the primitive stack opencode suggestion on #179 (review #3): RFC-0003 section 'Operational dependencies of this decision' only lists four follow-up ADRs and never mentions the dalek crates; the primitive stack (with x25519-dalek and ed25519-dalek) is in its Guide-level explanation. Related and Links now point there, consistent with the licence note. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> --------- Signed-off-by: Gonzalo Fleming <[email protected]>
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 644307a655
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ng state Codex (App) P1 on #174: ml-dsa's sign_randomized creates rnd, rhopp and the mask y as plain buffers inside the crate (upstream master signing.rs:316-329, 397-401); its zeroize feature covers only key structures. RFC-0012 required 'any signing temporaries' in zeroizing types, which no caller can guarantee for library internals and which is stricter than threat-model 4.3 (best-effort erasure via zeroize). Maintainer decision: the normative rule binds every signing temporary QuantumSSH's own code creates or holds; crate-internal temporaries fall under 4.3's best effort and the crate ADR records them as a residual. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
|
Claude finished @gonzafg2's task in 25s —— View job PR Review: docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) (#174)Decision: 🟢 Approved Executive summaryADR-0035 picks Previous issues
On item 8, the Codex P1 asked to gate the release on upstream zeroization of signing temporaries. The maintainer instead scoped RFC-0012's normative rule to temporaries QuantumSSH's own code creates, and had this ADR record the in-crate ones as a residual. That is coherent. Threat-model §4.3 promises only best-effort erasure, and the ADR names the temporaries with line references. It also says they are re-checked against the pinned release, so the residual is not waived. I accept it, with one condition: the ADR is only consistent with RFC-0012 if #172 merges with that scoping intact (see the first suggestion). New findingsNo issue reached the ≥ 80 reporting threshold. Two sub-threshold suggestions: 💡 Suggestions (nice to have)
Commitment check
|
…encies From claude's review #7 on #174: say what the dependencies add rather than what the lockfile holds. crypto-common has one locked version on main (0.2.2), so the statement is unchanged in substance. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
|
APIError: Insufficient Balance (request_id: 4b089295-22da-4b07-b519-c3747127483b) |
PR Review: docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (#174)Decision: 🟡 Minor changes Executive summaryADR-0035 selects Previous issues
New findings🟡 Important (should be resolved)[docs/adr/0035-ml-dsa-crate-rustcrypto.md:194–199] — factual inaccuracy (confidence: 97)
Code reference: quantumssh/docs/adr/0035-ml-dsa-crate-rustcrypto.md Lines 167 to 170 in 34c83f4 quantumssh/docs/adr/0035-ml-dsa-crate-rustcrypto.md Lines 193 to 200 in 34c83f4 |
|
APIError: Insufficient Balance (request_id: 2b31d379-a3f8-40f7-abe5-1c9b11e9a5a8) |
PR Review: ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (#174)Decision: 🟢 Approved Executive summary ADR-0035 selects Previous issues
New findings None. The ADR is internally consistent, cross-referenced correctly against RFC-0012, RFC-0006, RFC-0007, ADR-0019, and ADR-0036, and addresses every material risk identified across nine review rounds. Reviewed at |
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
e314a04 to
3af52ee
Compare
…ng state Codex (App) P1 on #174: ml-dsa's sign_randomized creates rnd, rhopp and the mask y as plain buffers inside the crate (upstream master signing.rs:316-329, 397-401); its zeroize feature covers only key structures. RFC-0012 required 'any signing temporaries' in zeroizing types, which no caller can guarantee for library internals and which is stricter than threat-model 4.3 (best-effort erasure via zeroize). Maintainer decision: the normative rule binds every signing temporary QuantumSSH's own code creates or holds; crate-internal temporaries fall under 4.3's best effort and the crate ADR records them as a residual. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
3af52ee to
f6b04be
Compare
…ng state Codex (App) P1 on #174: ml-dsa's sign_randomized creates rnd, rhopp and the mask y as plain buffers inside the crate (upstream master signing.rs:316-329, 397-401); its zeroize feature covers only key structures. RFC-0012 required 'any signing temporaries' in zeroizing types, which no caller can guarantee for library internals and which is stricter than threat-model 4.3 (best-effort erasure via zeroize). Maintainer decision: the normative rule binds every signing temporary QuantumSSH's own code creates or holds; crate-internal temporaries fall under 4.3's best effort and the crate ADR records them as a residual. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
…5519 before 0.1.0 (#172) * docs(rfc): RFC-0012 — cut host authentication over to ssh-mldsa44-ed25519 before 0.1.0 Both RFC-0006 adoption gates have fired: the SSHM WG adopted draft-ietf-sshm-composite-sigs on 2026-08-22, and OpenSSH 10.6 (2026-10-06) enabled ssh-mldsa44-ed25519 under its final name. RFC-0012 is the implementation RFC RFC-0006 requires. One decision: the host-key slot carries exactly ssh-mldsa44-ed25519, replacing ssh-ed25519 in a single cut-over before the 0.1.0 freeze, with no release offering both. It excludes ssh-mldsa87-p384 (ECDSA P-384 is on the zero-legacy floor) and delegates the ML-DSA crate, the ADR-0021 slot-2 supersession and the interop client pin (ADR-0034) to three subsidiary ADRs. Also updates the threat model (5.2.3, 6.1, 7, 9) with the gates' status, moves tracking from the closed #42 to #109, and adds the host-key item to the phase-2 freeze checklist. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(rfc): RFC-0012 — normative key-material handling; atomic profile/interop landing Addresses the two Codex findings on #172: - Reference-level now makes threat-model 4.3 explicit for the composite key: seeds, expanded ML-DSA key, Ed25519 key and signing temporaries are zeroizing, dropped early, and never in Debug, errors, logs or panics. - Ordering applies RFC-0007 section 2: the profile ADR (ADR-0021 slot 2) and the interop-client ADR flip to Accepted inside the implementation PR together with the ADR-0020 fixtures and the code; only the crate ADR may land earlier. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(threat-model): state RFC-0006's two adoption gates as the §7 trigger Codex review #2 on #172: the pre-existing wording 'a settled IETF standard' contradicted RFC-0006, whose first gate is SSHM WG adoption, and the -00 status RFC-0012 records. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(rfc): RFC-0012 — list threat-model §1 and §2.3 among host-key restatements opencode review #3 on #172 surfaced threat-model.md:132 (§2.3, 'Ed25519 by default') while refuting it as a finding; it and the §1 default-profile line (58) also describe the shipped host key, so the implementation PR must update them. Only the list changes; both lines stay as they are until the cut-over lands. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs: split §7 host/user-key residual; cite OpenSSH source for the -cert name claude-review on #172: - threat-model §7: the classical-signatures bullet covers host and user keys; RFC-0012 closes only the host-key half. The closing sentence now says so and records that user keys stay ssh-ed25519 as a separate open decision (RFC-0006 Future possibilities). - RFC-0012: ssh-mldsa44-ed25519-cert is the certificate key type OpenSSH 10.6 defines (ssh-mldsa-eddsa.c:478, myproposal.h:53 at V_10_6_P1); the RFC now cites that source and notes it is an OpenSSH name, not a WG registration. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(rfc): RFC-0012 — scope the zeroization rule to first-party signing state Codex (App) P1 on #174: ml-dsa's sign_randomized creates rnd, rhopp and the mask y as plain buffers inside the crate (upstream master signing.rs:316-329, 397-401); its zeroize feature covers only key structures. RFC-0012 required 'any signing temporaries' in zeroizing types, which no caller can guarantee for library internals and which is stricter than threat-model 4.3 (best-effort erasure via zeroize). Maintainer decision: the normative rule binds every signing temporary QuantumSSH's own code creates or holds; crate-internal temporaries fall under 4.3's best effort and the crate ADR records them as a residual. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(rfc): RFC-0012 — re-wrap the Restatements paragraph Cosmetic, from claude's review #9 on #172: one line ran past the file's wrap width. No wording change. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(rfc): RFC-0012 — the cut-over closes RFC-0006's migration-window example RFC-0006 scopes the window to host-key signatures, so the CLAUDE.md and AGENTS.md example no longer names an open window once the cut-over lands. The implementation PR replaces or drops it. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]> --------- Signed-off-by: Gonzalo Fleming <[email protected]>
…ML-DSA-44 half (Proposed) Subsidiary ADR 1 of RFC-0012 (the dependency layer of RFC-0007 section 2), paralleling ADR-0019. Chooses RustCrypto ml-dsa (pure Rust, forbid, from_seed + ctx-aware hedged signing) over libcrux-ml-dsa, aws-lc-rs (no ctx parameter), fips204 and pqcrypto-mldsa (unmaintained). Version rule: the first release containing RustCrypto/signatures#1386 (constant-time fixes, merged 2026-06-24, unreleased as of 2026-10-11), pinned exactly; 0.1.1 is rejected because host-key signing is reachable before authentication. Stays Proposed until that release exists and flips to Accepted in the PR that adds the dependency. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> (cherry picked from commit fb682ea) Signed-off-by: Gonzalo Fleming <[email protected]>
… (sys_rng) claude-review on #174: the feature list justified only pkcs8, and hedged signing named no concrete CryptoRng. - Decision 2 now gives each enabled and dropped feature its own reason (rand_core gates sign_randomized; getrandom stays off to keep one OS randomness path; alloc is unused by the composite's surface). - Decision 3 names the RNG: getrandom::SysRng from the workspace's existing getrandom 0.4 dependency via its sys_rng feature, which implements rand_core 0.10 TryCryptoRng with no new crate (rand_core 0.10.1 is already in Cargo.lock). Verified end to end with ml-dsa 0.1.1 and getrandom 0.4.3 in a scratch crate. - Records the rejected sign_internal path (upstream marks it test-only) and a first-party adapter. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> (cherry picked from commit a64f2c7) Signed-off-by: Gonzalo Fleming <[email protected]>
claude-review round 2 on #174: - Version rule: the first stable (non-pre-release) ml-dsa release that contains RustCrypto/signatures#1386. - Decision 3: SysRng is fallible, so host-key signing becomes fallible (HostKey::sign returns Vec<u8> today, host_key.rs:165); an RNG error aborts the key exchange with SSH_DISCONNECT_KEY_EXCHANGE_FAILED, the path kex.rs already takes for getrandom failures, and never panics. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> (cherry picked from commit 100a423) Signed-off-by: Gonzalo Fleming <[email protected]>
…e erasure gap opencode review #3 suggestions on #174 (below its threshold, applied): - Decision 5: the implementation PR runs NIST ACVP ML-DSA-44 keyGen, sigVer and deterministic sigGen vectors (and the LAMPS composite vectors where published), as ADR-0019 required for ML-KEM. - Negative: ml-dsa 0.1.1's zeroize feature does not reach its shake dependency (declared default-features = false), so the SHAKE sponge state is not erased; recorded as within threat-model 4.3's best-effort erasure. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> (cherry picked from commit b820b43) Signed-off-by: Gonzalo Fleming <[email protected]>
opencode review #4 on #174: ACVP sigGen vectors are defined against FIPS 204's internal interface, so sign_deterministic (external framing) cannot reproduce them. Decision 5 now names the calls upstream's own harness uses at ml-dsa/v0.1.1: from_seed for keyGen, sign_internal for sigGen (deterministic with zeroed rnd and hedged with the vector's rnd), verify_internal for sigVer, in tests only. The production framing (sign_randomized with ctx and the composite M') is covered by the LAMPS composite vectors where published and end to end by the ADR-0020 OpenSSH interop gate. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> (cherry picked from commit 605636e) Signed-off-by: Gonzalo Fleming <[email protected]>
…CVP harness opencode review #5 suggestion on #174: the ACVP vectors carry expanded signing keys, loaded through ExpandedSigningKey::from_expanded, which upstream deprecates and wraps in allow(deprecated) in its own harness. Item 5 now records the same test-only use and what happens if upstream gates or removes it. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> (cherry picked from commit 644307a) Signed-off-by: Gonzalo Fleming <[email protected]>
…s a residual Codex (App) P1 on #174: sign_randomized creates rnd, rhopp and the mask y as plain buffers inside the crate (upstream master signing.rs:316-329, 397-401); the zeroize feature covers only key structures (646-655). Per the maintainer's decision, RFC-0012 (#172, 5082d25) now scopes its normative zeroization rule to first-party signing state and asks the crate ADR to record crate-internal temporaries as a residual under threat-model 4.3's best-effort erasure. This records them next to the existing SHAKE-state residual. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> (cherry picked from commit 4116313) Signed-off-by: Gonzalo Fleming <[email protected]>
…encies From claude's review #7 on #174: say what the dependencies add rather than what the lockfile holds. crypto-common has one locked version on main (0.2.2), so the statement is unchanged in substance. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> (cherry picked from commit 34c83f4) Signed-off-by: Gonzalo Fleming <[email protected]>
ed25519-dalek 3.0.0 brought in signature 3.0.0, and ml-dsa 0.1.1 asks for signature ^3. The dependency adds three crates, not four, and there is no second signature major to retire. ADR-0036 joins the Related line. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]> (cherry picked from commit 587b8fe) Signed-off-by: Gonzalo Fleming <[email protected]>
587b8fe to
d9419e6
Compare
Summary
ADR-0035 (Proposed) is subsidiary ADR 1 of RFC-0012: the crate for the ML-DSA-44 half of the composite host key. It is the dependency layer that RFC-0007 §2 calls for, and it parallels ADR-0019 (
ml-kem).Decision: use
RustCrypto/ml-dsa, withdefault-features = false, features = ["zeroize", "rand_core"].sign_randomizedwithctx = "COMPSIG-MLDSA44-Ed25519-SHA512", matching what OpenSSH 10.6 does (ssh-mldsa-eddsa.cdraws fresh randomness witharc4random_buffor every signature).from_seed(FIPS 204KeyGen_internal).Version rule: the first release that contains RustCrypto/signatures#1386, pinned exactly.
Proposeduntil that release exists, then flips toAcceptedin the PR that adds the dependency.Evidence gathered for the ADR (2026-10-11)
ml-dsa = "=0.1.1"with the feature set above toquantumssh-core(then reverted):cargo check -p quantumssh-corecompiles.ml-dsa,shake 0.1.0,signature 3.0.0andsponge-cursor 0.1.0. All are RustCrypto crates licensed Apache-2.0 OR MIT, whichdeny.tomlallows.signature2.x/3.x, whichdeny.tomlonly warns on. It goes away with the dalek 3.x bump planned on Phase 2 / Hito 2: usable server — PTY, config, SFTP, systemd, 0.1.0 #109.ml-dsahas only RUSTSEC-2025-0144, patched since0.1.0-rc.3.cargo denyis not installed locally. It runs in the PR that actually adds the dependency.libcrux-ml-dsa0.0.11: four RustSec advisories in 2026.aws-lc-rs1.18.1:PqdsaKeyPair::sign(&self, msg, signature)takes no context string, so it cannot produce the composite.fips2040.4.6: no release since 2024-12-22.pqcrypto-mldsa: unmaintained (RUSTSEC-2026-0166).Stacked on #172
This PR's base is the RFC-0012 branch, so the links to
docs/rfcs/0012-…resolve. Merge #172 first (its comment window closes 2026-10-22); this PR then retargets tomain. No code orCargo.tomlchange lands here. The dependency arrives with the implementation, per RFC-0012 §Ordering.Refs #109
https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW