Skip to content

Nym Bridge v0.4.0

Choose a tag to compare

@tommyv1987 tommyv1987 released this 23 Nov 15:06
· 2 commits to main since this release
b6c34b8

Changed

  • Breaking config change: block on the QUIC and TLS transports is now a plain IP address instead of a socket address (e.g. block = "2a01::1234", no port). If you had block set with a port, drop it when upgrading - the old form will fail to parse. SSH gains the same block option, newly.
  • QUIC now offers h3 first (falling back to the legacy hq-29 for clients that haven't upgraded), and TLS now negotiates a real-looking ALPN (http/1.1 on the server, h2/http/1.1 offered by the client) instead of none at all. The public ALPN_QUIC_HTTP constant is removed (it was unused outside this crate)
  • scripts/upgrade-nym-bridge.sh takes --tls-port/--ssh-port instead of hardcoding 4443/4422, and now defaults to 443/2222 so the TLS and SSH transports blend in on networks that only allow standard ports out. Operators upgrading an already-added TLS/SSH transport keep their existing port - only a fresh add picks up the new default, so remember to also open 443/2222 in your cloud provider's firewall
  • scripts/upgrade-nym-bridge.sh now only migrates the block field's old socket-address form on releases that actually expect a plain IP (0.4.0+), handles both TOML quote styles, and refreshes the published disguise-host SNI pool on every run

Added

  • SSH transport now enforces the block IP list and connection_limit, matching QUIC and TLS
  • QUIC and TLS now compare the blocked IP after canonicalizing both sides, so a dual-stack listener reporting an IPv4 peer as an IPv4-mapped IPv6 address still matches a plain IPv4 block entry
  • SSH presents a generic identification banner by default instead of the underlying library's own name and version
  • TLS handshake failures are now logged with peer address and reason, matching QUIC and SSH
  • QUIC and TLS now present a certificate named after the SNI a client sends (the node's identity pubkey, the legacy shared disguise host, or this node's current disguise host), instead of always naming the certificate after the raw pubkey - every client, however old its descriptor, still gets a name it already accepts

Fixed

  • Self-signed bridge certificates now carry a normal-looking ~1 year validity window instead of rcgen's default sentinel dates (1975-4096) - visible to anyone who completes a handshake (TLS 1.3 encrypts the certificate, so not to a purely passive observer)
  • The forwarder's steady-state UDP-to-transport write and close are now cancellation-aware and bounded, so a caller that cancels and awaits the forwarder's JoinHandle to redial in place no longer risks hanging on a stalled write or close in that loop (the initial peer-establishing write is a separate path and is not yet covered by this)