Repository navigation
IVNP v0.10.4
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 inmergedListener.feed(misplaceddeferafter the accept loop), tracked losing-leg dial drains insideDestination.operations, aligned:0ephemeral ports across multi-network listeners, preserved non-adjacentDialSequentialordering, fixed aDaemon.Waitvs.StartWaitGrouprace, and synchronizedEmbeddedRouter.NewDestinationDomainAsyncagainstClose(). - Cross-network migration coordinator (
node/internal/runtime/migration_coordinator.go): Prevented inbound and leg handshakes from hijacking active streams withoutNotifyPathMigrated, enforceddownUntilguards acrosshandlePrepared,handleEstablished, and stalehandleInbound, canceled duplicatedomainLegFeedbackpreparations, removed retired members inBeforeRelease, and guardedStart/Stoplifecycle transitions. - Config and validation hardening (
config.go,networks.go,packet.go,facade.go): Rejected RFC 1918 and ULA privateAdvertisedaddresses under public profiles, rejected empty-prefix packet target suffixes ("-datagram2"), prevented slice aliasing inRouterConfig.WithandWithDialPolicy, wrappedErrUnknownNetwork/ErrUnsupportedNetworkconsistently, and added consistent nil-receiver guards.
Control plane (controlplane)
- Controller lock hierarchy and publication safety (
controlplane/internal/runtime,controlplane/internal/netdb): Enforced the acyclicdestinationMu -> mu -> {stateMu, clientRuntimesMu}order acrossControllerstore/bundle mutations, master promotion, andnetdbSaveLoop; madeenqueueDestinationPublicationnon-blocking; eliminatedLeaseSetPublisher.HandleDeliveryStatuscross-publisher lock inversion; fixedconfirmedPublicationtoken leaks and in-place slice zeroing races; serializedRouterInfoPublisher; and preventedRouter.ClosebeforeStartfrom creating an unstoppable router. - Direct-first handshake ordering (
controlplane/internal/router): Prioritized connected directLease[0]inrankedLeases2, alignedNewSessionReplydelivery with connected direct reply routes, and awaitedControlQueueingestion inPrepareHandshakeso 1-hop directSYN-ACKpackets never overtake 2-hop relayedNewSessionReplypackets. - Residual fixes (
controlplane/internal/{tunnel,netdb,reseed,nat/upnp}): Fixeduint8underflow peer quarantine inPeerProfiles, saturatedStoreFlooderper-key counters, joined errors across all expired probes inHealth.expireActive, rejected signing afterLocalRouterInfo.ReleaseSensitive, returnedErrNoRouterInfosfromreseed.Client.FetchAnywhen 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}): RetainedsynLeaseacrossdialMultiLegschedule goroutines, releasedTunnelNetwork.outboundMubeforefinish/abortduring shutdown, honoredio.Writeracross transient chunk send errors intunnelConn.Write, cleaned up inboundFlagResetstreams viaabort(false), drained retiring slots and blocked post-retire re-installs inDomainRouteTable, fixedSSU2Managersession/ABA/callback races andVQUICManager/SharedPortMuxclose-drain slab leaks, pinnedCircuitTokenintunnel.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}): SplitrecvCipherMuandwriteGateMuinvtls.Sessionto eliminateReadFrameshandler close deadlocks and write-queue slab leaks, addedreadMuand pre-read padding validation inntcp2, clearedaead/hpBlockonWipe()and precomputedAppendACKRangescounts invquic, wiped intermediate TLS 1.3 and SSU2 secrets, split OS-specificMSG_TRUNCmasks and unmapped IPv4-mapped IPv6 addresses inssu2, and preserved transcript hashes for aliased buffers innoise.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-hostswith fail-closed listener isolation, default-portsameOriginRequestcanonicalization, bounded per-frame SSE write deadlines,WebUIServerlifecycleMuand shutdown node detachment, cross-platform atomic config writes,ivnp-reseedPeerStore.SaveToFilesnapshots andActiveCrawlerlocking,SAMSTREAM FORWARD/ACCEPT/UDP shutdown and nil-UDP fixes, andHTTPProxy/SOCKS5Proxyremote-close cancellation. - Observability & static lock enforcement (
observability,.github/workflows/ci.yml,docs/testing-and-simulation.md): ComputedTransportSnapshot.Sessionswithout lost updates, removed shared mutablezeroRegistryState, added+115// +checklocksannotations across all layers (1,507 total), and expanded CIchecklockschecks to-tags integrationandGOOS=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/ivnpdFull 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-runnersBuild 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.
- Release archive attestation record: https://github.com/gosuda/IVNP/attestations/74793014
- All repository attestations: https://github.com/gosuda/IVNP/attestations
- Offline Sigstore bundle:
ivnpd-v0.10.4.sigstore.json
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