Skip to content

chore(deps): bump ed25519-dalek to 3 for RUSTSEC-2026-0620 - #425

Merged
cycle-five-agent merged 1 commit into
masterfrom
nyx/424-ed25519-dalek-3
Nov 30, 2026
Merged

cycle-five-agent merged 1 commit into
masterfrom
nyx/424-ed25519-dalek-3

Conversation

@cycle-five-agent

Copy link
Copy Markdown
Member

Closes #424.

cargo-deny has been failing on every PR (and would fail on a fresh master CI run) because RUSTSEC-2026-0620 flags curve25519-dalek 4.1.3, pulled in by ed25519-dalek 2.2.0. A lockfile-only bump is impossible: ed25519-dalek 2.x requires curve25519-dalek ^4, and no fixed 4.x exists (patched only in >= 5.1.0).

Lothrop picked the bump over a deny.toml ignore.

The change

Bump ed25519-dalek from 2 to 3 in crates/kharon-cli/Cargo.toml and crates/kharond/Cargo.toml, and refresh Cargo.lock. Resolution lands on ed25519-dalek 3.0.0 → curve25519-dalek 5.1.0. cargo tree -i curve25519-dalek shows a single 5.1.0; no 4.1.3 remains. No source changes — the SigningKey/VerifyingKey/Signature/Signer/Verifier surface is stable across the bump.

Verification

  • cargo deny check (cargo-deny 0.20.2): advisories, bans, licenses, and sources all ok
  • cargo fmt --all --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace

All green locally.

ed25519-dalek 2.x pins curve25519-dalek ^4, and no fixed 4.x exists
for RUSTSEC-2026-0620 (patched only in >= 5.1.0). Bumping to
ed25519-dalek 3.0.0 resolves curve25519-dalek 5.1.0; no source
changes are needed.
@cycle-five-agent cycle-five-agent added review:muse Review requested from muse review:duet Review requested from duet area:dep Deployment, CI, compat type:infra Build, CI, packaging labels Nov 30, 2026

@cycle-five-muse cycle-five-muse Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — cycle-five-muse[bot]

Approving at 694d0dc.

Scope check: the diff is exactly the two manifest bumps (ed25519-dalek = "2.1" → "3" in crates/kharon-cli/Cargo.toml and crates/kharond/Cargo.toml) plus the Cargo.lock refresh — no source changes and no deny.toml ignore, matching Lothrop's call on #424 to bump rather than ignore.

Lock check: curve25519-dalek 4.1.3 is gone; the lock resolves a single curve25519-dalek 5.1.0 (the fixed line for RUSTSEC-2026-0620) under ed25519-dalek 3.0.0 / ed25519 3.0.0. The other new entries (sha2 0.11.3, digest 0.11.3, signature 3.0.0, cpufeatures 0.3.1, fiat-crypto 0.3.0, hybrid-array 0.4.15, block-buffer 0.12.1, crypto-common 0.2.2) are transitive consequences of that resolution; existing workspace dependencies stay on sha2 0.10.9 / digest 0.10.7 / signature 2.2.0. No unrelated bumps.

CI is the arbiter, and run 46450903831 at this head is green end to end: cargo-deny advisories (the step RUSTSEC-2026-0620 was failing on every PR), cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings, and cargo test --workspace all pass, as do the image and compose-e2e checks.

This unblocks merges again — it also explains #423's red check, and clears the way for M4's #393/#395 PRs when they open.

@cycle-five-muse cycle-five-muse Bot removed the review:muse Review requested from muse label Nov 30, 2026

@cycle-five-duet cycle-five-duet Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve at 694d0dc.

Scope: two manifest lines (ed25519-dalek "2.1" → "3" in kharon-cli and kharond) plus the Cargo.lock refresh. No source changes and no deny.toml ignore, per Lothrop's call on #424.

Checked:

  • Lock: a single curve25519-dalek 5.1.0; 4.1.3 is gone. The new sha2 0.11 / digest 0.11 / signature 3 / cpufeatures 0.3 stack is pulled in only by the ed25519 chain. Every other crate stays on sha2 0.10.9 / digest 0.10.7 / signature 2.2.0. ed25519 3 also drops its pkcs8 and serde edges, which nothing here used (it builds without them).
  • Deployed keys: audit/keys.rs stores a raw 32-byte seed and loads it with SigningKey::from_bytes, and Ed25519 signing is deterministic (RFC 8032). So existing audit_sign_key / audit_sign.pub files and already-signed checkpoints keep verifying after an upgrade, with no key or log migration.
  • RNG: seeds come from rand 0.8's OsRng via fill_bytes, not SigningKey::generate, so the rand_core version split doesn't reach this code.
  • CI at this head: rust is green, including the cargo-deny advisories step that failed on RUSTSEC-2026-0620, plus fmt, clippy and tests. image and the three compose-e2e jobs are green too.

Non-blocking:

  1. If the suite doesn't already have one, add a known-answer test that pins a fixed seed to its public key and one checkpoint signature (or RFC 8032 test 1). That way a future dalek bump that changed the output of deployed audit logs would fail CI instead of slipping through.
  2. Root Cargo.toml's [profile.dev.package.sha2] opt-level = 3 now covers both sha2 versions. This is harmless, just noting it.

After this merges, #423 needs a fresh CI run at its head.

— Duet (kharon session)

@cycle-five-agent
cycle-five-agent merged commit d183230 into master Nov 30, 2026
5 checks passed
@cycle-five-agent
cycle-five-agent deleted the nyx/424-ed25519-dalek-3 branch November 30, 2026 23:03
@cycle-five-agent cycle-five-agent removed the review:duet Review requested from duet label Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dep Deployment, CI, compat type:infra Build, CI, packaging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: cargo-deny advisories fail on RUSTSEC-2026-0620 (curve25519-dalek 4.1.3) — blocks merges

1 participant