Skip to content

IVNP v0.10.4

Choose a tag to compare

@github-actions github-actions released this 01 Dec 18:49
· 26 commits to main since this release
v0.10.4
f25ee9e

IVNP v0.10.4

IVNP v0.10.4 adds exact-host reverse-proxied WebUI access (-webui-allowed-hosts) in ivnpd, fixes concurrency, lock-ordering, lifecycle, and memory-hygiene bugs across layers L0 through L9 verified by cross-package mutex-graph analysis and -race regression tests, and expands checklocks static lock enforcement across Linux, Windows, and integration build tags.

What changed

Public API, node lifecycle & roaming (gosuda.org/ivnp, node)

  • Listener, dial, and shutdown lifecycle (stream_facade.go, node/embedded.go, node/internal/runtime/node.go): Fixed a permanent close deadlock in mergedListener.feed (misplaced defer after the accept loop), tracked losing-leg dial drains inside Destination.operations, aligned :0 ephemeral ports across multi-network listeners, preserved non-adjacent DialSequential ordering, fixed a Daemon.Wait vs. Start WaitGroup race, and synchronized EmbeddedRouter.NewDestinationDomainAsync against Close().
  • Cross-network migration coordinator (node/internal/runtime/migration_coordinator.go): Prevented inbound and leg handshakes from hijacking active streams without NotifyPathMigrated, enforced downUntil guards across handlePrepared, handleEstablished, and stale handleInbound, canceled duplicate domainLegFeedback preparations, removed retired members in BeforeRelease, and guarded Start/Stop lifecycle transitions.
  • Config and validation hardening (config.go, networks.go, packet.go, facade.go): Rejected RFC 1918 and ULA private Advertised addresses under public profiles, rejected empty-prefix packet target suffixes ("-datagram2"), prevented slice aliasing in RouterConfig.With and WithDialPolicy, wrapped ErrUnknownNetwork/ErrUnsupportedNetwork consistently, and added consistent nil-receiver guards.

Control plane (controlplane)

  • Controller lock hierarchy and publication safety (controlplane/internal/runtime, controlplane/internal/netdb): Enforced the acyclic destinationMu -> mu -> {stateMu, clientRuntimesMu} order across Controller store/bundle mutations, master promotion, and netdbSaveLoop; made enqueueDestinationPublication non-blocking; eliminated LeaseSetPublisher.HandleDeliveryStatus cross-publisher lock inversion; fixed confirmedPublication token leaks and in-place slice zeroing races; serialized RouterInfoPublisher; and prevented Router.Close before Start from creating an unstoppable router.
  • Direct-first handshake ordering (controlplane/internal/router): Prioritized connected direct Lease[0] in rankedLeases2, aligned NewSessionReply delivery with connected direct reply routes, and awaited ControlQueue ingestion in PrepareHandshake so 1-hop direct SYN-ACK packets never overtake 2-hop relayed NewSessionReply packets.
  • Residual fixes (controlplane/internal/{tunnel,netdb,reseed,nat/upnp}): Fixed uint8 underflow peer quarantine in PeerProfiles, saturated StoreFlooder per-key counters, joined errors across all expired probes in Health.expireActive, rejected signing after LocalRouterInfo.ReleaseSensitive, returned ErrNoRouterInfos from reseed.Client.FetchAny when zero peers are admitted, and wiped derived ECIES/ELS keys.

Data plane & transports (dataplane)

  • Streaming, routing, tunnel & garlic core (dataplane/internal/{streaming,router,tunnel,garlic}): Retained synLease across dialMultiLeg schedule goroutines, released TunnelNetwork.outboundMu before finish/abort during shutdown, honored io.Writer across transient chunk send errors in tunnelConn.Write, cleaned up inbound FlagReset streams via abort(false), drained retiring slots and blocked post-retire re-installs in DomainRouteTable, fixed SSU2Manager session/ABA/callback races and VQUICManager/SharedPortMux close-drain slab leaks, pinned CircuitToken in tunnel.Runtime.HandleGatewayContext, and checked output buffer length before advancing outbound ECIES ratchet tags.
  • Transport protocol implementations (dataplane/internal/transport/{vtls,ntcp2,vquic,veil,ssu2,noise}): Split recvCipherMu and writeGateMu in vtls.Session to eliminate ReadFrames handler close deadlocks and write-queue slab leaks, added readMu and pre-read padding validation in ntcp2, cleared aead/hpBlock on Wipe() and precomputed AppendACKRanges counts in vquic, wiped intermediate TLS 1.3 and SSU2 secrets, split OS-specific MSG_TRUNC masks and unmapped IPv4-mapped IPv6 addresses in ssu2, and preserved transcript hashes for aliased buffers in noise.SymmetricState.

Client services, CLI, observability & checklocks (client, cmd, observability, state, internal)

  • Reverse-proxied WebUI and daemon hardening (cmd/ivnpd, cmd/ivnp-reseed, client/internal/{sam,frontend,addressbook}): Added -webui-allowed-hosts with fail-closed listener isolation, default-port sameOriginRequest canonicalization, bounded per-frame SSE write deadlines, WebUIServer lifecycleMu and shutdown node detachment, cross-platform atomic config writes, ivnp-reseed PeerStore.SaveToFile snapshots and ActiveCrawler locking, SAM STREAM FORWARD/ACCEPT/UDP shutdown and nil-UDP fixes, and HTTPProxy/SOCKS5Proxy remote-close cancellation.
  • Observability & static lock enforcement (observability, .github/workflows/ci.yml, docs/testing-and-simulation.md): Computed TransportSnapshot.Sessions without lost updates, removed shared mutable zeroRegistryState, added +115 // +checklocks annotations across all layers (1,507 total), and expanded CI checklocks checks to -tags integration and GOOS=windows.

Downloads

Each binary archive contains the self-contained static ivnpd binary (including the embedded WebUI), LICENSE, and README.md.

Artifact Target platform Microarchitecture baseline
ivnpd-v0.10.4-linux-amd64.tar.gz Linux (x86_64) GOAMD64=v2
ivnpd-v0.10.4-linux-arm64.tar.gz Linux (arm64) GOARM64=v8.0
ivnpd-v0.10.4-darwin-amd64.tar.gz macOS Intel (x86_64) GOAMD64=v1
ivnpd-v0.10.4-darwin-arm64.tar.gz macOS Apple Silicon (arm64) GOARM64=v8.4
ivnpd-v0.10.4-windows-amd64.zip Windows (x86_64) GOAMD64=v2
ivnpd-v0.10.4-windows-arm64.zip Windows (arm64) GOARM64=v8.1
SHA256SUMS Checksum manifest SHA-256 digests for all release archives
ivnpd-v0.10.4.sigstore.json Offline Sigstore bundle SLSA v1.0 Build Level 2 provenance for all archives and SHA256SUMS

Reproducible build and checksum verification

Verify downloaded archives against SHA256SUMS:

sha256sum -c SHA256SUMS --ignore-missing
# On macOS:
grep ' ivnpd-v0.10.4-darwin-arm64.tar.gz$' SHA256SUMS | shasum -a 256 -c -

Reproduce any target binary locally from tag v0.10.4 using the pinned Go toolchain in go.mod:

git checkout v0.10.4
GOOS=linux GOARCH=amd64 ./scripts/repro-build.sh ./dist/ivnpd ./cmd/ivnpd

Full Changelog: v0.10.3...v0.10.4

Container images (GHCR, multi-arch linux/amd64 + linux/arm64)

Image Pinned digest SLSA v1.0 L2 attestation
ghcr.io/gosuda/ivnpd:v0.10.4 sha256:ef2e926e39add51a12eaa1ee764c0085117cef356dca6edb7015d4b822642346 https://github.com/gosuda/IVNP/attestations/74792756
ghcr.io/gosuda/ivnp-reseed:v0.10.4 sha256:f934730f025a869ce8de961fdd9f55d2c20a7ef244d040a886b4020d8ee9ee7f https://github.com/gosuda/IVNP/attestations/74792796

Verify GHCR OCI image provenance before deploying:

gh attestation verify oci://ghcr.io/gosuda/ivnpd@sha256:ef2e926e39add51a12eaa1ee764c0085117cef356dca6edb7015d4b822642346 \
  --repo gosuda/IVNP \
  --signer-workflow gosuda/IVNP/.github/workflows/release.yml \
  --source-ref refs/tags/v0.10.4 \
  --deny-self-hosted-runners

Build provenance attestation

GitHub Actions generated SLSA v1.0 Build Level 2 provenance for every release archive, SHA256SUMS, and GHCR OCI container image on GitHub-hosted runners.

Verify release archives online against GitHub attestations or offline with the attached Sigstore bundle:

gh attestation verify ivnpd-v0.10.4-linux-amd64.tar.gz \
  --bundle ivnpd-v0.10.4.sigstore.json \
  --repo gosuda/IVNP \
  --signer-workflow gosuda/IVNP/.github/workflows/release.yml \
  --source-ref refs/tags/v0.10.4 \
  --deny-self-hosted-runners