Skip to content

Ghost keys: move the RSA issuer to rsa 0.10 (clears RUSTSEC-2023-0071) - #4

Merged
LoopyLuci merged 4 commits into
mainfrom
chore/rsa-0.10
Nov 30, 2026
Merged

LoopyLuci merged 4 commits into
mainfrom
chore/rsa-0.10

Conversation

@LoopyLuci

Copy link
Copy Markdown
Owner

Summary

  • The ghost-key issuer (crates/transferd-crypto/src/ghostkey.rs) moves from rsa 0.9 to rsa 0.10. The rsa 0.9 line carries the Marvin timing advisory (RUSTSEC-2023-0071) with no backport, and the issuer performs raw RSA private-key operations on blinded messages.
  • The blinding arithmetic stays on num-bigint-dig; values cross the RSA boundary as bytes. The random source is rsa::rand_core::UnwrapErr around getrandom::SysRng.
  • The RUSTSEC-2023-0071 ignore is removed from .cargo/audit.toml. cargo audit reports no vulnerabilities with the repo's configuration.

Core files: TransferDaemon must sync

crates/transferd-crypto and .cargo/audit.toml are entries in core.manifest. Once this merges, TransferDaemon's core-sync check fails until those files are synced there (scripts/sync-core.sh <Transferd checkout> run in TransferDaemon).

Tests

  • The 37 transferd-crypto tests pass with RUSTFLAGS=-D warnings, including the five ghost-key tests.
  • Workspace cargo clippy --all-features -- -D warnings passes.
  • All workspace test binaries pass, run with -j 2: the default parallelism exhausted the Windows paging file while building the overlay tests. This is a local resource limit, not a code change.
  • CI has not run: no self-hosted runner is registered yet, so this PR's checks stay queued.

🤖 Generated with Claude Code

LoopyLuci and others added 4 commits November 28, 2026 15:10
…3-0071

The rsa 0.9 line carries the Marvin timing advisory and has no backport. The ghost-key issuer
performs raw RSA private-key operations on blinded messages, so the exposure is live for an issuer.

ghostkey.rs moves to rsa 0.10's API:
- PrivateKey and PublicKey replace the deprecated RsaPrivateKey and RsaPublicKey aliases.
- Values cross the RSA boundary as crypto-bigint BoxedUint; the blinding arithmetic stays on
  num-bigint-dig, with values converted through bytes.
- The random source is rsa::rand_core::UnwrapErr around getrandom::SysRng (a TryCryptoRng).
- PSS verification uses rsa's own sha2 Sha384 as the digest type.

The RUSTSEC-2023-0071 ignore is removed. cargo audit reports no vulnerabilities with the repo's
configuration, and with no ignores at all the only finding is the bincode warning already on the list.

Core files: this changes crates/transferd-crypto and .cargo/audit.toml, both listed in core.manifest.
TransferDaemon must sync them before its core-sync check passes.

Tests: the 37 transferd-crypto tests pass with -D warnings. Workspace clippy with -D warnings passes,
and all workspace test binaries pass (run with -j 2: the default parallelism exhausted the Windows
paging file while building the overlay tests).

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
crypto-bigint 0.5.5 (RUSTSEC-2026-0387) is reached in TransferDaemon through
transferd-webrtc -> webrtc 0.12 -> webrtc-dtls 0.11 -> p256 -> ecdsa ->
crypto-bigint 0.5.5. Any WebRTC peer can drive it during DTLS. No 0.5.x
release is fixed; the fix needs the webrtc 0.21 migration, which is a
rewrite of transferd-webrtc in TransferDaemon. This ignore is time-boxed to
2026-12-31, and the deadline is tracked by the maintainer. It is inert in
Transferd, which does not depend on webrtc; it reaches TransferDaemon through
the core-file sync.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Brings in the self-hosted CI (#3), the DNS and proxy fixes, and the audit
ignore for RUSTSEC-2026-0620 (until 2026-12-31). The audit.toml conflict keeps
this branch's RUSTSEC-2026-0387 entry and drops the RUSTSEC-2023-0071 entry
that the rsa 0.10 migration makes unnecessary, then appends the 0620 entry.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Inside a git hook, git sets GIT_DIR to the repository the hook runs for. The
selftest's temporary repositories ran git init and git add with that variable
set, so they acted on the real repository. On a push from a worktree, that
rewrote the shared config to core.bare = true, and every worktree then failed
with "must be run in a work tree".

clean_git_env drops the repository-location variables. The checks' git()
helper and the selftest use it, so temporary repositories find only their own
.git.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@LoopyLuci
LoopyLuci merged commit 0e80e0d into main Nov 30, 2026
12 of 14 checks passed
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