github selkies-project/selkies 1842a73

pre-releaseone hour ago

build(deps): Move the rtc crates to 0.21.2, dropping what landed upstream

webrtc-rs/rtc 0.21.2 checks the bounds of two unmarshal panics a peer
reaches (webrtc-rs/rtc#333), verifies MESSAGE-INTEGRITY on the TURN
client's responses, authenticates DTLS retransmission triggers and
drops PSK records that fail to decrypt (webrtc-rs/rtc#289,
webrtc-rs/rtc#313), retries an authenticated Allocate under a fresh id
(webrtc-rs/rtc#332), and fixes SCTP, ICE, TURN and DTLS besides. Every
rtc crate moves to =0.21.2 together: selkies-rtc's pins and
dev-dependencies, the fuzz crate's rtc-sctp, and the suites' rtc;
sansio stays 1. Each lockfile changes the rtc family alone.

The five vendored crates are 0.21.2 with their patches carried over,
each patch the diff from the published crate to the tree again:

  • rtc-dtls drops the retransmission timer fix and its test, identical
    to webrtc-rs/rtc#288; it keeps the SRTP profile chosen by the
    server's order and the code-scanning fixes.
  • rtc-sctp drops what 0.21.2 does itself: the INIT's header-only last
    parameter (webrtc-rs/rtc#276), the error cause length check
    (webrtc-rs/rtc#333), the FORWARD TSN parse and jump, DATA too far
    ahead or on a stream the peer never opened, and the wrap arithmetic
    (0.21.2's SCTP fixes), duplicate reporting (webrtc-rs/rtc#301), and
    the reassembly byte count (webrtc-rs/rtc#322). It keeps the random
    source, the reassembly ceiling, the per-chunk error tolerance, the
    gap ranges, the SACK past the next TSN, the timers and the I-bit. An
    ERROR still ends an association while it is being established, where
    webrtc-rs/rtc#277 ends none; a TSN exactly 2^31 away is still a
    duplicate, so 0.21.2's too-far-ahead test takes it as one. The
    tolerance now lets the association end on its own queues found
    inconsistent, which the reset rework (webrtc-rs/rtc#279) can find
    while handling a peer's chunk.
  • rtc-turn draws the authenticated Allocate retry's id
    (webrtc-rs/rtc#332) from the crypto provider as well; its test now
    follows the retry through a 401, allocate() having returned the
    anonymous request's id since.
  • rtc-ice and rtc-srtp carry over unchanged; 0.21.2's new SRTP tests
    run through the in-place encryption.

selkies-rtc's SCTP notes no longer credit the patch with what 0.21.2
does. Patches: 3257 lines to 2813.

Verified: the sixteen rtc crates' sha256 match crates.io and the
lockfiles; each published crate with its patch applied equals its
vendored tree; test-vendored.sh (sctp 255, dtls 85, ice 66, srtp 41,
turn 62), cargo test -p selkies-rtc (354), selkies --lib (911; the
pod's known wm test fails as on main), pre-commit with both feature
clippies and the fuzz targets, cargo xtask licenses, and 18 WebRTC e2e
cases against this tree's server (the iterate build, named by
SELKIES_TEST_SERVER) in Chromium, Firefox and WebKit, 255 checks, none
failed: loss recovery, the cut, five multi-controller cases, the TURN
relay with the server allocating through coturn, file transfer, large
clipboard, ICE combined and ice-lite, signaling roles, the congestion
step, and the browser matrix.

Don't miss a new selkies release

NewReleases is sending notifications on new releases.