Skip to content

chore(deps): move ed25519-dalek and x25519-dalek to 3.0.0 (curve25519-dalek 5) - #179

Merged
gonzafg2 merged 13 commits into
mainfrom
chore/deps-dalek-3x
Oct 11, 2026
Merged

gonzafg2 merged 13 commits into
mainfrom
chore/deps-dalek-3x

Conversation

@gonzafg2

Copy link
Copy Markdown
Owner

Summary

This PR implements ADR-0036 (#177): ed25519-dalek and x25519-dalek move to 3.0.0 together, both on curve25519-dalek 5.0.0.

x25519-dalek  = { version = "3.0.0", default-features = false, features = ["static_secrets", "zeroize"] }
ed25519-dalek = { version = "3.0.0", default-features = false, features = ["zeroize"] }
  • ed25519-dalek drops std, which 3.x removed, and rand_core, which first-party code does not use because the server never generates keys.
  • No first-party code change. The public API the project calls is unchanged, and verify keeps its 2.x semantics.
  • This PR also flips ADR-0036 to Accepted, the repo pattern for an ADR implemented by a single PR.

Verification (local, macOS, Rust 1.99)

Check Result
Resolved versions curve25519-dalek 5.0.0, ed25519-dalek 3.0.0, x25519-dalek 3.0.0, signature 3.0.0
Cargo.lock 102 → 88 packages
cargo tree -d -e normal -p quantumssh-core nothing to print. Before, six crates were duplicated: sha2, digest, rand_core, block-buffer, crypto-common, cpufeatures
cargo clippy --workspace --all-targets -- -D warnings clean
cargo test --workspace 34 + 103 + 35 passed
cargo build --workspace --release ok

The OpenSSH interop gate (ADR-0020) runs in CI against the release binary and exercises X25519 inside the hybrid KEX, plus Ed25519 host signing and user-signature verification, end to end.

Stacked: merge order

This PR's base is the ADR-0036 branch (#177).

  1. fix(deps): declare zeroize's alloc feature explicitly #175 declares zeroize/alloc. This branch carries that commit as a cherry-pick so it builds; once fix(deps): declare zeroize's alloc feature explicitly #175 squash-merges, the cherry-pick drops on rebase.
  2. docs(adr): ADR-0036 — move ed25519-dalek and x25519-dalek to 3.x together (Proposed) #177: ADR-0036.
  3. This PR.

Refs #109

https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW

…ther (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]>
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]>
…-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]>
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]>
@claude

claude Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@claude

claude Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

PR Review: chore(deps): move ed25519-dalek and x25519-dalek to 3.0.0 (curve25519-dalek 5) (#179)

Decision: 🟢 Approved
Iteration: First review
Lenses applied: Dependency bump (Cargo.toml / Cargo.lock), design decision (docs/adr/0036-dalek-3x-coordinated-bump.md)

Executive summary

This PR performs a coordinated major-version bump of ed25519-dalek (2 → 3), x25519-dalek (2 → 3), and their shared transitive dependency curve25519-dalek (4 → 5) in a single atomic step, as required to avoid duplicate copies of the underlying library. No first-party Rust source files are touched; the diff is purely Cargo.toml, Cargo.lock, and the acceptance of ADR-0036. All five MANIFIESTO commitments hold: unsafe_code = "forbid" is unaffected, the hybrid PQ KEX (mlkem768x25519-sha256) is unchanged, no legacy primitive enters, zeroize is explicitly declared on zeroize/alloc to cover the loss of the ed25519-dalek/std transitive grant, and no licence or surface-area constraint is changed. The lock file shrinks from 102 to 88 packages, eliminating all six previously-duplicated crates.

New findings

No findings reached the reporting threshold (≥ 80). Checked: memory safety (CLAUDE.md §1), post-quantum KEX default (§2), zero-legacy (§3 + RFC-0006 migration window for ssh-ed25519), dependency justification (§4), ADR governance (ADR-0015), key-material zeroization (threat model §4.3), and lock-file consistency with Cargo.toml.

@opencode-agent

Copy link
Copy Markdown

I have enough to report. Both lenses are validated: the dependency graph resolves (cargo tree -d -e normal -p quantumssh-core → "nothing to print"), CI checks (build ubuntu, openssh-interop, cargo deny, commit-lint) passed on the head commit, and all three commits are API-verified. The only defect is a minor citation inaccuracy, verified against RFC-0003.

PR Review: chore(deps): move ed25519-dalek and x25519-dalek to 3.0.0 (curve25519-dalek 5) (#179)

Decision: 🟢 Approved
Iteration: First review
Lenses applied: design decision (docs/adr/0036), Rust/dependency (Cargo.toml, Cargo.lock). CI is not in scope — the PR touches no workflow files.

Executive summary

The PR bumps x25519-dalek 2.0.1→3.0.0, ed25519-dalek 2→3.0.0 and transitively curve25519-dalek 4.1.3→5.0.0, adds alloc to the zeroize feature set, and flips ADR-0036 to Accepted. No first-party code changes. The change is process-correct (RFC-0007 §2 puts dependency-layer primitive choices in a crate-selection ADR paralleling ADR-0019), shrinks the tree (102→88 packages), keeps the hybrid KEX / AEAD / zeroization posture intact, and introduces no legacy, no first-party unsafe, and no licence violation. The one real cost — losing the Verus verification that covered curve25519-dalek 4.1.3 — is stated prominently in the ADR and accepted knowingly; it is a documented judgment call, not a hidden regression. Nothing reached the reporting threshold.

Verification performed

  • cargo tree -d -e normal -p quantumssh-core → nothing to print (duplicate crates eliminated, as claimed).
  • CI on head bc0de145: build (ubuntu-latest) ✅, openssh-interop ✅, cargo deny ✅, commit-lint ✅.
  • All three commits report .commit.verification.verified = true via the GitHub API.
  • kex.rs calls .zeroize() only on ML-KEM state / plain buffers (kex.rs:663, :672, :788), never on StaticSecret/SharedSecret, so dropping impl Zeroize in 3.0.0 does not break the build; ZeroizeOnDrop satisfies threat-model §4.3 ("best-effort … via the zeroize crate").
  • Legacy posture unchanged: KEX_LIST still offers only mlkem768x25519-sha256 + strict-kex (kex.rs:56); X25519/Ed25519 remain the hybrid's allowed classical halves (CLAUDE.md Generate and publish project PGP key for SECURITY.md #3, RFC-0007 §3).

New findings

💡 Suggestions (nice to have)

  • docs/adr/0036-dalek-3x-coordinated-bump.md:35 — citation accuracy (confidence: ~85, impact low).
    The licence note attributes the quote to RFC-0003 §"Operational dependencies", but that section (0003…md:129) lists follow-up ADRs and no licences; the sentence "all are Apache-2.0 or MIT" is in RFC-0003's Guide-level explanation (0003…md:56). Since this ADR is written in an explicitly accuracy-correcting posture toward RFC-0003, the section reference should point at the Guide-level explanation.
    Anchor: RFC-0003 §"Guide-level explanation" (§ line 56) vs §"Operational dependencies of this decision" (line 129); ADR-0015 errata/accuracy discipline.
    Link

No finding reached the ≥80 threshold. The dependency bump is justified, cargo deny-clean, feature-complete for its call sites, and does not regress any hard security rule.

github run

…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]>
@gonzafg2

Copy link
Copy Markdown
Owner Author

Round 1 summary.

Source Finding Action Commit
opencode (suggestion) The RFC-0003 licence sentence is in its Guide-level explanation, not in §"Operational dependencies" Citation corrected. The same commit also carries the #177 review fixes: the 2.x release date, two manifest lines instead of three, present vs future controls, and the softened reference to the ml-dsa ADR f4c32b4 (cherry-pick of #177's 6a10bea)

claude-review approved with no findings. Codex review is red for an infrastructure reason: OpenAI API credits. It is not a finding.

…dencies

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]>
…s-dalek-3x

Signed-off-by: Gonzalo Fleming <[email protected]>

# Conflicts:
#	docs/adr/0036-dalek-3x-coordinated-bump.md
@opencode-agent

Copy link
Copy Markdown

PR Review: chore(deps): move ed25519-dalek and x25519-dalek to 3.0.0 (curve25519-dalek 5) (#179)

Decision: 🟢 Approved
Iteration: Review #2 (1 resolved, 0 open)
Lenses applied: dependency bump (Cargo.toml / Cargo.lock), design decision (docs/adr/0036-dalek-3x-coordinated-bump.md). CI is not in scope — the PR touches no workflow files.

Executive summary

The PR bumps ed25519-dalek 2→3.0.0, x25519-dalek 2.0.1→3.0.0, transitively curve25519-dalek 4.1.3→5.0.0 and signature 2→3.0.0, adds alloc to the zeroize feature set, and flips ADR-0036 to Accepted. No first-party source changes. I reproduced the build at head: cargo tree -d -e normal -p quantumssh-core → nothing to print, cargo clippy --workspace --all-targets -- -D warnings clean, cargo test --workspace all passing (34 + 103 + 35). Key-material handling is preserved: x25519-dalek 3.0.0's StaticSecret/SharedSecret keep Drop+ZeroizeOnDrop and first-party .zeroize() calls still target only plain buffers (kex.rs:663,672,788), satisfying threat-model §4.3. The change is process-correct (RFC-0007 §2 routes dependency-layer primitive choices to a crate-selection ADR) and introduces no legacy, no first-party unsafe, and no licence violation. The one remaining defect is a factual self-contradiction in the ADR.

Previous issues

# Issue Status Notes
1 ADR-0036 licence note attributed the RFC-0003 quote to §"Operational dependencies of this decision" instead of §"Guide-level explanation" (opencode, #179) ✅ Resolved f4c32b4; docs/adr/0036-dalek-3x-coordinated-bump.md:35-36 now cites §"Guide-level explanation", which is where RFC-0003:56 carries the sentence.

New findings

💡 Suggestions (nice to have)

  • docs/adr/0036-dalek-3x-coordinated-bump.md:90-92 and :127-128 — factual inaccuracy / self-contradiction (confidence: 90, impact low).

    Problem: The ADR asserts "There has been no 4.x release since 2024-06-18" (lines 90–92) and "curve25519-dalek 4.x has had no release since 2024-06-18" (lines 127–128), yet its own facts table at line 30 records that 4.2.0 existed and was yanked. crates.io confirms 4.2.0 was published 2025-07-09 (yanked=true) — a 4.x release after 2024-06-18. No repo convention defines "release" to exclude yanked publishes. This is the same class of date inaccuracy fixed for ed25519-dalek 2.x in the previous round, and it matters because the "stay on the current line" argument rests on it.
    Fix: Scope the statement to usable releases, e.g. "no usable 4.x release since 2024-06-18 (4.2.0, 2025-07-09, was yanked)" in both places.
    Anchor: ADR-0036's own accuracy-correcting posture (lines 35–40) and ADR-0015 errata discipline.
    Link

Verification performed

  • Dependency graph resolves at head with no duplicate crates in quantumssh-core; Cargo.lock is 88 packages (was 102).
  • Feature sufficiency checked against the actual downloaded crates: std/rand_core were the only drops, zeroize+static_secrets retained, ed25519-dalek zeroize still yields Drop+ZeroizeOnDrop.
  • Licences match deny.toml (dalek crates BSD-3-Clause; ed25519/signature Apache-2.0 OR MIT); no new dependency names, no yanked version, advisories unaffected.
  • All five commits report .commit.verification.verified = true via the GitHub API.
  • Limitations: cargo-deny/cargo-audit are not installed in this environment, so cargo deny check was not run locally; CI (build, openssh-interop, cargo deny) was still pending on the updated head at review time. Neither is evidence of a defect.

Decision: 🟢 Approved.

github run

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]>
@gonzafg2

Copy link
Copy Markdown
Owner Author

Round 3 summary. These are opencode suggestions; both reviewers approved.

Source Finding Action Commit
opencode on #179 (suggestion) "no 4.x release since 2024-06-18" ignored curve25519-dalek 4.2.0, which was published on 2025-07-09 and yanked Both statements now read "no usable 4.x release since 2024-06-18" and name 4.2.0. Verified on crates.io 2035438 (#177); merged into #179 as 748b5b4
opencode on #177 (suggestion) The licence cell "all six" had no referent It now reads "all three crates" same

@opencode-agent

Copy link
Copy Markdown

PR Review: chore(deps): move ed25519-dalek and x25519-dalek to 3.0.0 (curve25519-dalek 5) (#179)

Decision: 🟢 Approved
Iteration: Review #3 (2 resolved, 0 open)
Lenses applied: dependency bump (Cargo.toml / Cargo.lock), design decision (docs/adr/0036). CI is not in scope — the PR touches no workflow files.

Executive summary

The PR bumps x25519-dalek 2.0.1→3.0.0, ed25519-dalek 2→3.0.0 and transitively curve25519-dalek 4.1.3→5.0.0 and signature 2→3.0.0, adds alloc to the zeroize feature set, and flips ADR-0036 to Accepted. No first-party source changes; the tree shrinks (102→88 packages, all six duplicated crates and pkcs8/der/spki gone), and the hybrid KEX / AEAD / zeroization posture is untouched. The design is sound and process-correct; the only new finding is a wrong RFC-0003 section reference in the ADR, the same class of accuracy issue fixed in earlier rounds.

Previous issues

# Issue Status Notes
1 ADR-0036 licence note cited RFC-0003 §"Operational dependencies" instead of §"Guide-level explanation" (opencode, #179) ✅ Resolved f4c32b4; docs/adr/0036-dalek-3x-coordinated-bump.md:36 now cites §"Guide-level explanation" (RFC-0003:56).
2 "no 4.x release since 2024-06-18" ignored the yanked curve25519-dalek 4.2.0 (opencode, #179 review #2) ✅ Resolved 2035438 (#177), merged as 748b5b4; both statements now read "no usable 4.x release since 2024-06-18" and name 4.2.0 (:91, :127).

New findings

💡 Suggestions (nice to have)

  • docs/adr/0036-dalek-3x-coordinated-bump.md:6 and :193 — citation accuracy (confidence: ~85, impact low).

    Problem: The Related header and the Links section both point at RFC-0003 §"Operational dependencies of this decision" as the source of the primitive stack and of this decision. That section (docs/rfcs/0003-phase-1-ssh-stack-greenfield-vs-russh.md:129-138) only enumerates four follow-up ADRs — workspace topology, unsafe_code = "forbid", the ml-kem crate, the interop gate — and never mentions the dalek crates. The primitive stack whose versions this ADR moves is in RFC-0003 §"Guide-level explanation" (:39-54), whose manifest at :46-47 carries x25519-dalek = "2.0.1" / ed25519-dalek = "2". Line 36 of this same ADR already cites §"Guide-level explanation" correctly, so the file is internally inconsistent.
    Fix: point both references at RFC-0003 §"Guide-level explanation" (or at RFC-0003 generally).
    Anchor: RFC-0003 §"Guide-level explanation" (:39-56) vs §"Operational dependencies of this decision" (:129-138); ADR-0036's own accuracy-correcting posture (:31-40); ADR-0015 errata/accuracy discipline.
    Link

Verification performed

  • Diff is exactly three files (no .rs): Cargo.lock 88 packages (was 102), Cargo.toml pins x25519-dalek 3.0.0 / ed25519-dalek 3.0.0, zeroize gains alloc.
  • Feature sufficiency: first-party uses only SigningKey::from_bytes, Verifier::verify, Signature::from_bytes/from_slice — no rand_core/std need; Zeroizing<Vec<u8>>/<String> (auth.rs:309, transport.rs:1402, kex.rs:766, main.rs:342) require exactly the zeroize/alloc now declared.
  • No first-party .zeroize() targets StaticSecret/SharedSecret (kex.rs:663,672,788 are ML-KEM state / plain buffers); those types rely on ZeroizeOnDrop, satisfying threat-model §4.3.
  • Package-name diff: no new transitive crates, only removals (base64ct, const-oid, der, generic-array, pkcs8, spki, version_check and old duplicates); no legacy primitive or extra KEX enters.
  • CI on head 748b5b4: build (ubuntu), openssh-interop, cargo deny, commit-lint, claude-review pass. All commits report .commit.verification.verified = true via the GitHub API.
  • Limitations: crates.io is blocked in this environment, so I could not build locally or verify external crate facts (release dates, MSRV, verify semantics, Verus status); these rest on the ADR plus green CI. The one red check, review (codex), is the reported OpenAI-credits outage, not a code defect.

Decision: 🟢 Approved.

github run

… 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]>
@gonzafg2

Copy link
Copy Markdown
Owner Author

Round 4 summary.

Source Finding Action Commit
opencode on #179 (suggestion) Related and Links cited RFC-0003 §"Operational dependencies", which lists four follow-up ADRs and never mentions the dalek crates. The primitive stack is in its §"Guide-level explanation" Both references now point to §"Guide-level explanation", consistent with the licence note cf723af (#177); merged into #179 as c686ffe

@opencode-agent

Copy link
Copy Markdown

PR Review: chore(deps): move ed25519-dalek and x25519-dalek to 3.0.0 (curve25519-dalek 5) (#179)

Decision: 🟢 Approved
Iteration: Review #4 (3 resolved, 0 open)
Lenses applied: dependency bump (Cargo.toml / Cargo.lock), design decision (docs/adr/0036-dalek-3x-coordinated-bump.md). CI is not in scope — the PR touches no workflow files.

Executive summary

The PR bumps x25519-dalek 2.0.1→3.0.0 and ed25519-dalek 2→3.0.0, which co-resolve curve25519-dalek 4.1.3→5.0.0 and signature 2→3.0.0, adds alloc to the zeroize feature set, and flips ADR-0036 to Accepted. No first-party Rust source changes; the tree shrinks 102→88 packages with the six duplicate crates eliminated. I reproduced the full build/test/clippy loop at head and verified the feature, key-material and zero-legacy posture. Nothing new reaches the reporting threshold.

Previous issues

# Issue Status Notes
1 ADR-0036 licence note cited RFC-0003 §"Operational dependencies" instead of §"Guide-level explanation" (opencode, #179) ✅ Resolved f4c32b4; docs/adr/0036-dalek-3x-coordinated-bump.md:35-36 cites §"Guide-level explanation" (RFC-0003:56).
2 "no 4.x release since 2024-06-18" ignored the yanked curve25519-dalek 4.2.0 (opencode, #179 review #2) ✅ Resolved 2035438; both statements now read "no usable 4.x release since 2024-06-18: 4.2.0, published 2025-07-09, was yanked" (:90-92, :127-128).
3 Related header and Links cited RFC-0003 §"Operational dependencies" for the primitive stack (opencode, #179 review #3) ✅ Resolved cf723af, merged c686ffe; :6 and :193 now cite §"Guide-level explanation", consistent with the licence note.

New findings

No finding reached the ≥ 80 threshold. Checked: memory safety (CLAUDE.md #1, unsafe_code = "forbid" untouched), PQ-default KEX (#2 — KEX_LIST unchanged), zero-legacy (#3, RFC-0007 §3 / RFC-0009 — ssh-ed25519 and X25519 remain the hybrid's classical halves, not legacy), dependency justification (#4), open licence (#5), key-material zeroization (threat-model §4.3), and ADR lane/status discipline (ADR-0015; RFC-0007 §2 routes dependency-layer primitive choices to a crate-selection ADR paralleling ADR-0019).

Verification performed

  • At head c686ffe, all --locked: cargo build --workspace, cargo test --workspace (34 + 103 + 35, 0 failed), cargo clippy --workspace --all-targets -- -D warnings and cargo fmt --all -- --check pass.
  • cargo tree -d -e normal -p quantumssh-core → nothing to print; Cargo.lock is 88 packages (was 102). No new package names, only removals.
  • Feature sufficiency: first-party code uses only SigningKey::from_bytes, Verifier::verify, Signature::from_bytes/from_slice, Signer; no first-party rand_core use, so dropping ed25519-dalek's std/rand_core is safe. Zeroizing<Vec<u8>>/<String> (kex.rs:766,773, transport.rs:1402, auth.rs:309, host_key.rs:76, main.rs:342) require exactly the zeroize/alloc now declared.
  • Key-material: the only first-party .zeroize() calls are kex.rs:663,672,788 (ML-KEM state / plain buffers), none on StaticSecret/SharedSecret; those keep Drop+ZeroizeOnDrop, satisfying threat-model §4.3. Verified in the vendored 3.0.0 source.
  • All seven commits report .commit.verification.verified = true via the GitHub API.
  • Limitations: cargo-deny/cargo-audit are not installed here, so cargo deny check was not run locally; licences were checked manually against the vendored manifests and all fall within deny.toml's allow-list. CI (build, openssh-interop, cargo deny, commit-lint) was not observed from this environment — neither gap is evidence of a defect.

Decision: 🟢 Approved.

github run

gonzafg2 added a commit that referenced this pull request Oct 11, 2026
…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]>
Base automatically changed from docs/adr-0036-dalek-3x-coordinated-bump to main October 11, 2026 23:23
Signed-off-by: Gonzalo Fleming <[email protected]>

# Conflicts:
#	docs/adr/0036-dalek-3x-coordinated-bump.md
@gonzafg2
gonzafg2 merged commit c87fdab into main Oct 11, 2026
12 of 13 checks passed
@gonzafg2
gonzafg2 deleted the chore/deps-dalek-3x branch October 11, 2026 23:28
@claude

claude Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

PR Review: chore(deps): move ed25519-dalek and x25519-dalek to 3.0.0 (curve25519-dalek 5) (#179)

Decision: 🟢 Approved
Iteration: Review #3 (3 resolved, 0 open)
Lenses applied: Dependency update (Cargo.toml), design decision (docs/adr/0036)

Executive summary

This PR performs a coordinated semver-major bump of ed25519-dalek (2.2.0 → 3.0.0) and x25519-dalek (2.0.1 → 3.0.0), both moving to curve25519-dalek 5.0.0, with no first-party code changes. The Cargo.lock shrinks from 102 to 88 packages by eliminating six previously-duplicated crate versions. ADR-0036 is flipped to Accepted with the implementing PR link and editorial fixes from earlier reviews. All three previously-raised issues are resolved. No new findings at the ≥80 confidence threshold.

Previous issues

# Issue Status Notes
1 ADR-0036 licence note cited wrong RFC-0003 section (opencode Review #1) ✅ Resolved Fixed in f4c32b4
2 "No 4.x release since 2024-06-18" ignored yanked curve25519-dalek 4.2.0 (opencode Review #2) ✅ Resolved Fixed in 748b5b4
3 ADR-0036 Related header and Links cited wrong RFC-0003 section (opencode Review #3) ✅ Resolved Fixed in c686ffe

@opencode-agent

Copy link
Copy Markdown

PR Review: chore(deps): move ed25519-dalek and x25519-dalek to 3.0.0 (curve25519-dalek 5) (#179)

Decision: 🟢 Approved
Iteration: Review #5 (3 resolved, 0 open)
Lenses applied: dependency bump (Cargo.toml / Cargo.lock), design decision (docs/adr/0036-dalek-3x-coordinated-bump.md), CI/supply-chain (no workflow files touched). CI scope is limited to commit verification and registry/source provenance.

Executive summary

The PR bumps ed25519-dalek 2→3.0.0 and x25519-dalek 2.0.1→3.0.0, co-resolving curve25519-dalek 4.1.3→5.0.0 and signature 2→3.0.0, and flips ADR-0036 to Accepted. It touches only three files, changes no first-party Rust, and shrinks the lockfile 102→88 packages with no new dependency names. I reproduced the build/test/tree checks at head and independently re-verified the ADR's factual claims against crates.io and the downloaded crate sources. All five commitments and the hard security rules hold; nothing new reaches the reporting threshold.

Previous issues

# Issue Status Notes
1 ADR-0036 licence note cited RFC-0003 §"Operational dependencies" instead of §"Guide-level explanation" (opencode, #179) ✅ Resolved f4c32b4; docs/adr/0036-dalek-3x-coordinated-bump.md:35-36 now cites §"Guide-level explanation".
2 "no 4.x release since 2024-06-18" ignored the yanked curve25519-dalek 4.2.0 (opencode, #179) ✅ Resolved 2035438; :90-92 and :127-128 now read "no usable 4.x release since 2024-06-18: 4.2.0, published 2025-07-09, was yanked".
3 Related header and Links cited RFC-0003 §"Operational dependencies" for the primitive stack (opencode, #179) ✅ Resolved cf723af, merged c686ffe; :6 and :193 now cite §"Guide-level explanation".

New findings

No finding reached the ≥ 80 threshold.

Checked, all clean:

  • Memory safety (ci(deps): Bump actions/checkout from 4 to 6 #1). No .rs in the diff; unsafe_code = "forbid" unaffected.
  • PQ default (chore(security): publish project PGP key #2) / zero-legacy (Generate and publish project PGP key for SECURITY.md #3). KEX_LIST, HOST_KEY_LIST, cipher lists unchanged. X25519 and ssh-ed25519 remain the classical halves of the accepted hybrid/composite posture under RFC-0007 §3 and RFC-0009 — not legacy.
  • Key material (threat-model §4.3). x25519-dalek 3.0.0 keeps Drop + ZeroizeOnDrop on StaticSecret/SharedSecret (x25519.rs:280,356); ed25519-dalek 3.0.0 keeps Drop + ZeroizeOnDrop on SigningKey (signing.rs:719,726), with the manifest's zeroize feature enabled. The only first-party .zeroize() calls (kex.rs:663,672,788) target ML-KEM state and plain buffers, never the secret types, so losing the 3.0.0 impl Zeroize breaks nothing.
  • Feature sufficiency. Dropping ed25519-dalek's std (removed upstream) and rand_core (unused first-party) is safe; zeroize/alloc is declared explicitly (Cargo.toml, from fix(deps): declare zeroize's alloc feature explicitly #175). No first-party rand_core use — host keys are loaded, never generated.
  • verify semantics. Still raw_verify::<Sha512> (non-strict) with verify_strict separate (verifying.rs:367,573); unchanged from 2.x per the 3.0.0 CHANGELOG.
  • Supply chain (chore(security): mark quantumssh.org aliases as live #4). No new package names or sources; registry set byte-identical; only removals (pkcs8, der, spki, generic-array, old duplicates). cargo deny passed on head. The ADR is the correct lane (RFC-0007 §2's crate-selection-ADR rule applies to a new primitive, not a version bump), and the Proposed→Accepted flip is the documented pattern (ADR-0015 scopes immutability to Accepted ADRs; docs/adr/README.md:117-124).
  • Verus coverage loss. Recorded prominently and accepted knowingly (:145-153). No hard rule requires formal verification (threat-model §1.1 disclaims a verification claim; ADR-0019:47 makes it a PQ-path fallback trigger only) — a documented trade-off, not a rule breach.

Verification performed

  • At head 8dccdb6, all --locked: cargo build --workspace and cargo test --workspace (34 + 103 + 35, 0 failed) pass; cargo tree -d -e normal -p quantumssh-core → nothing to print; Cargo.lock = 88 packages (was 102).
  • crates.io confirms all six new versions un-yanked, MSRV 1.85 ≤ workspace 1.92, edition 2024; curve25519-dalek 4.2.0 (2025-07-09) yanked; Xenial dates and MSRVs in the ADR table are accurate.
  • OSV/RustSec: RUSTSEC-2024-0344 fixed in 4.1.3, RUSTSEC-2022-0093 fixed in 2.0.0, none for x25519-dalek/signature/ed25519 — so "no advisory affects either the old versions or the new ones" holds.
  • All PR commits, including the merge 8dccdb6, report .commit.verification.verified = true via the GitHub API.
  • CI on 8dccdb6: build (ubuntu/macos), openssh-interop, cargo deny, commit-lint pass; review (codex) is red on the reported OpenAI API-credits outage — infrastructure, not a code defect.
  • Limitations: cargo-deny/cargo-audit are not installed in this environment, so cargo deny check was not run locally; licences were confirmed against deny.toml and the head cargo deny check-run.

Decision: 🟢 Approved.

github run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant