Skip to content

Releases

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 10:04
ff969d4

Fixed

  • When a direct connection failed and one side allowed the TURN relay while the other declined, the side that allowed it never learned the peer had declined: it still allocated a relay connection and then failed on a plain 15s (web) / 30s (CLI) timeout or a misleading "peer disconnected" message, instead of a clear "peer declined the relay" error. Relay consent is now split into two signaling stages (asking, then deciding) so a side never treats "the peer is asking" as "the peer agreed," and reports the peer's actual decision — decline, "couldn't be asked," or timeout — promptly and accurately. Fully compatible with peers on 0.6.2 or earlier. See testing.
  • A received tar archive entry with an absolute POSIX-style path (e.g. /etc/passwd) was silently accepted on a Windows receiver instead of being rejected, because filepath.IsAbs requires a Windows volume name to consider a path absolute. Not an exploitable path traversal (the destination-prefix check still held), but Windows now rejects these entries like every other platform.
  • On Windows, --status-file could be left stale: replacing the status file failed while another process had it open for reading, and the final result snapshot is written only once. The replacement now retries briefly while a reader holds the file.
  • A received tar archive entry named after a Windows reserved device (such as NUL or CON) or containing a colon is now rejected, so Windows receivers can't silently discard or redirect file data.
  • A CLI sending to Safari/WebKit on a Mac with two network interfaces on the same subnet often ended up with fewer than 8 parallel WebRTC connections (as few as 3), making transfers slower. The CLI's WebRTC library kept retrying one connection path whose replies came back from the other interface instead of switching to a working one. sp2p now builds against a patched pion/ice (pion/ice#1021) until the fix is released upstream.
  • Unix tunnel endpoints (unix://...) now fail with a clear "unsupported on native Windows; use TCP or WSL" error on Windows instead of an unrelated, confusing "must be an absolute unix:///path" parse error.

Added

  • CI now runs the Go test suite natively on Windows and CLI↔Microsoft Edge browser interop against a Windows-built CLI, so Windows-specific bugs surface in CI. See testing.
  • Homebrew, Scoop, AUR, and Chocolatey package manifests are now rendered by a shared script (scripts/packaging/render.sh) and validated in CI — rendered, installed, and (where applicable) audited on their native platform, plus a dry-run WinGet manifest check — on every packaging-related PR and after every release, without ever publishing. See testing.
  • Each full release is now smoke-tested against production sp2p.io right after deploy: a real CLI→browser (64 MiB, 8 WebRTC lanes) and browser→browser (8 MiB) transfer, using the release's own checksum-verified CLI, with relay denied so only a direct path can succeed. See testing.
  • Parallel-WebRTC lane setup now records per-lane diagnostics (an address-free connection/ICE/DTLS/DataChannel trace, and why a lane was lost — timeout, EOF, closed, mismatch, or error) instead of silently dropping a lane. The CLI emits a parallel_lanes JSON event and, with -v, a human-readable summary; the browser logs one console line. Never includes IPs, ports, ICE credentials, SDP, or transfer codes. A manual-dispatch-only lanes-stress CI workflow repeats CLI↔Chromium parallel-lane setup, including under CPU contention, to chase rare shortfalls using this new diagnostic surface. See parallel-webrtc.md and testing.

Changed

  • Slower CI checks now run after each merge to main and weekly instead of nightly, and releases require them to pass on the tagged commit.

Full changelog: https://github.com/zyno-io/sp2p/blob/v0.7.0/CHANGELOG.md

v0.6.2

Choose a tag to compare

@github-actions github-actions released this 28 Sep 06:48
3f8eafe

Fixed

  • CLI transfers over a TURN relay no longer leave a relay allocation held for up to 10 minutes after finishing. The CLI could exit before a connection had released its allocation; closing now waits for the release.

Added

  • CI now proves a real relay-only WebRTC transfer end to end — 8 parallel lanes, exact TURN allocation accounting, leaked-allocation detection, and graceful degradation under a per-session TURN quota — using a CI-only TURN relay server and a firewalled network namespace that blocks direct connectivity. See testing.

Full changelog: https://github.com/zyno-io/sp2p/blob/v0.6.2/CHANGELOG.md

v0.6.1

Choose a tag to compare

@github-actions github-actions released this 27 Sep 19:15
4d481dd

Fixed

  • Browser receivers no longer intermittently fail to connect to a CLI sender. If the CLI's WebRTC offer arrived before the browser had finished deriving session keys, the browser dropped it, and both sides failed after 15 seconds with "Could not establish P2P connection". This was more likely on slower machines and in Firefox and Safari. Early negotiation messages are now held until the browser is ready.

Changed

  • The example coturn configuration raises user-quota from 8 to 32, because a relayed 8-connection transfer needs about 16 allocations.
  • Package publishing must be run from the release tag, and it validates each asset's checksum before publishing.

Added

  • CI now tests every browser/CLI pairing against the previous release, runs transfers over a simulated 150 ms network with loss, and covers Firefox and WebKit. See testing.

Full changelog: https://github.com/zyno-io/sp2p/blob/v0.6.1/CHANGELOG.md

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 25 Sep 08:41
1538627

Upgrade notes

  • No configuration changes are required. Updated peers negotiate up to eight WebRTC connections; peers still on 0.5.0 keep four, in either direction. Browser↔browser transfers benefit as soon as the site is updated. Released receivers also get the socket-buffer improvement when the sender is updated.

Performance

  • Offers from Chromium- and WebKit-based browsers now include a video section that never carries media. Chrome then uses 1 MiB receive / 256 KiB send UDP socket buffers instead of 64 KiB, which avoids receiver burst drops and slow SCTP recovery at high RTT. The CLI adds the same section when it sends to a browser. Firefox senders and CLI↔CLI transfers are unchanged. With 150 ms of added delay, measured browser↔browser whole-file rates rose from about 4–5.5 MB/s to 8–10 MB/s, or 11–12 MB/s with more CPU on the remote browser. See the high-RTT investigation.
  • Negotiate up to eight authenticated WebRTC connections, up from four, for large browser and CLI transfers. The encrypted setup hello carries the larger request in an optional max field that older peers ignore. See parallel WebRTC negotiation.

Added

  • WAN test tooling: an experiment bundle builder, a numeric JSONL summarizer, per-connection native statistics, and the option to substitute the bundle on only the sender or receiver for mixed-version runs.

Full changelog: https://github.com/zyno-io/sp2p/blob/v0.6.0/CHANGELOG.md

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 22 Sep 01:56
ee291a0

Upgrade notes

  • Upgrade clients and servers independently. Transfer compatibility is automatic: updated peers use v3 together, and mixed 0.4.0/0.5.0 peers use v2, through either server version. No protocol flag or browser checkbox is required. Transcript-bound capabilities prevent signaling tampering from silently downgrading updated peers. Legacy compatibility warns without prompting, has fewer protections, and disables parallel TCP. See protocol compatibility.
  • Configure explicit trusted proxy IPs/CIDRs when using -trust-proxy, and make container /config mounts writable by UID/GID 65532. Review proxy, container, and relay migration before rollout.
  • Receive and archive-expansion limits default to 1 TiB each; zero selects the finite default. Browser memory downloads are capped at 256 MiB. Archive destinations must not already exist; extraction no longer merges into existing directories.
  • Bootstrap verifies matching-release checksums by default without requiring gh. The bootstrap-only --insecure-skip-checksum flag is an explicit first-argument opt-out that warns before running unchecked downloaded code.
  • Rsync uses the implementation installed on each macOS or Linux peer. Apple's built-in openrsync and historical macOS rsync 2.6.9 are supported without a Homebrew replacement. Options, metadata behavior, cross-version interoperability, and rsync security fixes depend on the installed implementations; this does not guarantee every historical patch level or option combination. On Windows, run both SP2P and rsync inside WSL because the native Windows adapter remains unsupported. Rsync and tunnel streams require updated authenticated-v3 CLI peers and do not fall back to legacy file-transfer mode.

Added

  • Add authenticated full-duplex streams with directional EOF, bounded flow control, and terminal acknowledgements over direct TCP, WebRTC, or an explicitly authorized encrypted relay.
  • Add sp2p rsync send|recv for one-use incremental synchronization through an automatically configured installed rsync transport. The sender always creates the code; either peer can select exact rsync arguments, and --rsync-binary selects a specific executable. Upstream rsync uses RSYNC_CONNECT_PROG; Apple openrsync uses a fixed local -e helper without SSH or peer-selected remote commands.
  • Add sp2p tunnel serve|connect for one fixed TCP or Unix target and one local TCP or Unix listener, including mixed endpoint types and duplex stdin/stdout. Each code accepts one connection.
  • Add four homepage usage tabs for AI agents, rsync, tunnels, and installation, with current-server commands, accessible keyboard navigation, and copy controls.
  • Extend JSON schema 1 stream events with service/mode context, endpoint readiness, bidirectional byte counters, base64-exact rsync subprocess output, and private status snapshots.
  • Expand the agent guide, README, manual, and discovery index with files, archives, pipes, both rsync option-selection modes, TCP/Unix/mixed/stdio tunnels, relay consent, and terminal completion guidance.

Changed

  • Update Go, Node.js, Go modules, web dependencies, GitHub Actions, and GoReleaser to their latest mutually compatible releases, and group future Dependabot updates by ecosystem.

Fixed

  • Keep zero-install command text readable in the dark homepage theme.
  • Keep browser-to-browser receive progress responsive on slow transfers.
  • Show one capability-appropriate browser receive action, restore its normal font weight, and timestamp browser diagnostic logs.
  • Remove one-use receive commands when a browser starts receiving, clear sender waiting text during active transfers, and display WebRTC negotiation stages and the selected direct/relay path.
  • Remove the sender's one-use share commands as soon as a receiver joins, before WebRTC negotiation finishes.
  • Publish fresh signed artifacts on re-release and use curated changelog notes without generated author mentions or contributor announcements.

Security and correctness

  • Negotiate transfer v3 between updated peers: authenticate transport candidates for CLI and browser peers, authenticate sender selection, bound confirmation, continuously drain controls, and enforce bounded receive credits (16 frames by default; 64 small frames with an explicit supported grant). Unauthenticated signaling client-type hints cannot bypass candidate authentication. Automatic v2 compatibility preserves updated peers' local decoding, queue, quota, and output protections, without claiming v3-only protections or repairs to old peers.
  • Start receiver key confirmation immediately after authenticated sender selection, preventing large auto-mode transfers from timing out when WebRTC connects but TCP is unavailable.
  • Drain parallel-transfer controls only into the remaining pending-queue capacity, so valid credit bursts followed by Heartbeat and Complete do not fail the connection.
  • Bound decompression, browser queues, signaling admission/traffic, reassembly, decoded receive bytes, and archive expansion. Receive/extraction default to 1 TiB each; browser memory downloads are limited to 256 MiB.
  • Finalize verified output before acknowledging; abort failed browser writes, publish archive wrappers atomically without replacement, and retain committed output after acknowledgement loss.
  • Coalesce tiny browser receive chunks into bounded owned blocks, keep healthy idle stdin/finalization alive without stale socket deadlines, and bound final FinAck waits to five seconds. Cancel blocked browser buffer drains immediately on peer failure.
  • Require trusted proxy IPs/CIDRs, cache/rate-limit TURN issuance, bound TTL, and provide an operator relay-policy example.
  • Preserve long or Unicode TAR paths with PAX headers and calculate exact archive sizes. CLI and browser receivers accept inaccurate legacy v2 archive size estimates while retaining local quotas and final byte-count, chunk-count, and SHA-256 verification; v3 archives and v2 regular files still require exact declared sizes.
  • Escape terminal control characters and apply HTML security headers consistently.
  • Update Go to 1.26.8 and golang.org/x/crypto to 0.56.0, pin container images, GitHub Actions, and release-tool downloads, run containers without root, and configure final release-artifact attestations for optional independent verification.
  • Check bootstrap archives against the matching release's SHA-256 manifest before extraction using standard OS tools, without requiring GitHub CLI (gh). Bootstrap trusts GitHub's HTTPS release channel; it does not independently verify signer identity.
  • Fall back to OpenSSL for shell bootstrap SHA-256 checks when neither sha256sum nor shasum is installed; by default, refuse execution if no verifier is available or hashing fails.
  • Add the explicit bootstrap-only --insecure-skip-checksum flag to shell and PowerShell. As the first bootstrap argument it skips manifest/hash checks, warns on stderr, and is not forwarded to the CLI; normal invocations still verify checksums.
  • Correct the documented web/bootstrap endpoint trust model and add security regressions, fuzz coverage, race/static checks, and full browser CI.

Performance

  • Negotiate up to four independently authenticated WebRTC connections for large browser/browser and browser/CLI transfers, with shared credits, bounded reassembly, per-lane keys, availability-based scheduling, and compatibility fallback. CLI -parallel 1 keeps one connection; existing parallel TCP behavior is unchanged.
  • Sample aggregate browser UDP socket-discard and network-byte counters across active connections without logging peer addresses. Add opt-in, hash-verified 500 MB WAN tests and a separate raw WebRTC control; experimental fixed queue/message-size tuning is not enabled.
  • Negotiate a bounded 4 MiB receive window for updated browser senders while retaining 64 KiB progress updates and automatic compatibility with existing v2/v3 clients. Add sampled transport, credit-wait, crypto, file-read, and disk-write diagnostics to investigate slow connections.
  • Stream single browser files with incremental hashing; coalesce archive reads while retaining interactive stdin latency.
  • Bound parallel compression to four workers, give each parallel stream its own write worker, and decrypt owned frame payloads in place.
  • Close/join partial secondary connections and bound UPnP cleanup, including mappings discovered after transfer teardown.

Full changelog: https://github.com/zyno-io/sp2p/blob/v0.5.0/CHANGELOG.md

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 05 Sep 06:23
7a616cd

Full Changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 24 Aug 09:28
ae5dd69

Full Changelog: v0.2.0...v0.3.0

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 10 Mar 23:10
1f5d4ea

Full Changelog: v0.1.0...v0.2.0

v0.1.1 (Server Only)

Choose a tag to compare

@github-actions github-actions released this 05 Mar 03:50
ee2718d

v0.1.1 (CLI: Windows)

Choose a tag to compare

@github-actions github-actions released this 05 Mar 02:55
38f2d5d