Skip to content

IVNP v0.10.5

Choose a tag to compare

@github-actions github-actions released this 02 Dec 01:18
· 9 commits to main since this release
v0.10.5
5225287

IVNP v0.10.5

IVNP v0.10.5 delivers a full-stack Data-Oriented Design (DOD), memory, GC noscan, and hot-path optimization pass across layers L0 through L9 without custom assembly or new "unsafe" imports, pairs it with adversarial review hardening across all subsystems, and introduces a zero-cron 3-Gate CI architecture (PR CI, Main CI, and Pre-Release CI) backed by offline I2P Golden Wire Vectors, structural invariant guards, a slab lease leak detector, and hermetic local i2pd container interoperability testing.

What changed

Core Primitives, Cryptography, Observability & State (L0 through L3)

  • Memory pools, wire framing & cache-line isolation (internal/{parallelism,pool,packet,wire,relay}): Added architecture-aware CacheLineSize and CacheLinePad (64 B on amd64/386/riscv64, 128 B on arm64/ppc64/s390x); aligned internal/pool to 10 I2P-tuned co-located slabN classes with unpooled backing cleanup on release; compacted packet.Buffer to 56 B; inlined wire.Cursor bounds; and routed internal/relay strictly through pooled 16 KiB wiped buffers without io.WriterTo/io.ReaderFrom stdlib bypasses.
  • Pure-Go cryptography (cryptography): Replaced field25519 with unsaturated 5x51-bit radix-2^51 limbs (X25519 2.5x to 3.5x faster); switched Elligator2 encode/decode to single-exponentiation fieldInvSqrt (~5x faster) with stack-only GenerateElligator2X25519Raw; made DecryptElGamal zero-allocation and constant-time across prefix and SHA-256 verification; cached validated ML-KEM-768/1024 handles; added stack-confined XORChaCha20Stream; and rejected zero-value X25519PrivateKey and nil-handle MLKEMPrivateKey operations.
  • Foundation, observability & encrypted state (foundation, observability, state, interfaces): Hoisted Base32/I2P-Base64 codecs with overlap-safe DecodeI2PBase64To and DecodedI2PBase64Len, added canonical tracking to Mapping.LookupCanonical, switched CompressRouterInfo to gzip level 6 (~10.7x faster), replaced stop-the-world ReadMemStats in observability.Registry with TryLock-serialized runtime/metrics.Read (including tiny-object allocations) and zero-allocation Prometheus formatting, and hardened state key validation, truncated policy bounds, exact encodeBundle preallocation, and 32-bit ReadBoundedFile checks.

Data Plane & Transports (L4)

  • Zero-pointer (noscan) tables and reduced memory footprint (dataplane): Converted veil.ReplayRing, ntcp2ReplayRing, ssu2RetryLimiter, ssu2SetupPacket, ssu2SentSlot, ecies.inboundTagTable, and tunnel.CircuitToken (16 B) to pointer-free layouts; removed dead 1,504 B SSU2 frame scratch and 125 KiB garlic receive scratch; moved tunnel.Runtime to chunked noscan slot arenas with 2-slot CAS LayerCipher and pooled ChaCha8 non-DST padding.
  • Transport and garlic hot paths (dataplane/internal/{router,transport,garlic,streaming}): Reduced SSU2 header masking from 6 to 2 ChaCha20 calls, added fail-closed per-slot windowing and global Retry token limiting in ssu2RetryLimiter, switched VQUIC inFlight tracking to a sorted circular deque gated at vquicInFlightMaxCap with 1-RTT CID refresh and close unregistration, moved ECIES AEAD and NewSession crypto off the shard mutex with inFlight draining and RatchetResult.TagMatched, added SharedPortMux direct-delivery startup drain and async VQUIC workers, converted streaming/tunnel pending/reordered/readRing queues to SoA rings with ReleaseSensitive cleanup on Close/Reset/TunnelNetwork.Close, prevented post-migration grace retransmits from misattributing loss to newly activated paths, added DomainRouteTable.EvictionGen(), detached VTLS ReadFrames payloads into wiped pool leases with a 4 MiB write cap, wiped 64-byte-aligned SHA-256 state in noise, and switched internal transport timers to monotonic epochs.

Control Plane, Client Services, Node & CLI (L5 through L9)

  • NetDB, tunnel pools & builders (controlplane): Rebuilt netdb.Table on dense SoA storage with 48 B inline leaseSlots, bucket-local Kademlia selection, PeerAtEndpoint 3-way collision recovery, and HasUsableTransportPeers fallback scanning; moved PeerProfiles to a 32 B inline hot map; switched tunnel.Pool lookups to lock-free poolView snapshots without renewal-window thrashing; added generation-guarded BuildManager shared deadline timer recovery; eliminated reflect in replyRouterInfoSeeds; and streamed NetDB persistence under netdbSaveMu.
  • Address book, SAM, proxies, node & daemons (client, node, cmd, gosuda.org/ivnp): Replaced addressbook storage with a deduplicated noscan arena, streaming ReadSlice parser, HTTP 304 short-circuit, and v4 disk format with unsigned index bounds; moved MigrationCoordinator to a flat noscan slab synchronized with DomainRouteTable.EvictionGen(); made packetSocket (ReadFromAddr/WriteToAddr/ParseAddr) zero-allocation; added session-sharded SAM UDP workers, pooled detached bufio.Readers, and pipelined byte preservation in STREAM ACCEPT; optimized ivnpd WebUI SSE and /api/netdb; and fixed ivnp-reseed eviction accounting, O(K log K) coverage gap scoring, single-buffer SU3 packaging, and canceled rate-limiter slot rollbacks.

Zero-Cron 3-Gate CI, Structural Guards & I2P Compatibility Shield

  • Event-driven 3-Gate CI (.github/workflows/ci.yml, .github/workflows/release.yml, docs/testing-and-simulation.md): Promoted full -race execution, non-race deterministic AllocsPerRun == 0 / noscan / Golden Wire Vector checks, and -tags leakcheck verification to PR CI; added Main CI gates for 20-seed DST, 3-seed -tags dst -race, and hermetic local purplei2p/i2pd:release-3.0.0.1 Docker container interoperability (scripts/i2pd-local-interop.sh, tests/integration/i2pd_local_interop_test.go); and wired Pre-Release gates (50-seed DST, parallel 10x30s fuzzing, OS-socket -race -count=5 stress, native darwin/arm64, and 1-retry live I2P smoke) ahead of SLSA v1.0 Build Level 2 release builds with zero cron workflows.
  • Structural bug & compatibility shields: Added the zero-overhead -tags leakcheck slab lease leak detector (internal/pool.ActiveLeases), 5 differential oracle suites (including streaming/tunnel uint32 0xFFFFFFF0 -> 0x00000010 wraparound), 5 stateful property suites, 17 deterministic ZeroAllocGuard and NoScanLayoutGuard suites, and 9-package offline Golden Wire Vector fixtures (testdata/vectors/*.json) covering NTCP2, SSU2, ECIES + ML-KEM-768/1024, NetDB/ELS2, Reseed SU3, STBM/VTBM, Tunnel 1024B/1028B framing, Streaming, and Datagrams.

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.5-linux-amd64.tar.gz Linux (x86_64) GOAMD64=v2
ivnpd-v0.10.5-linux-arm64.tar.gz Linux (arm64) GOARM64=v8.0
ivnpd-v0.10.5-darwin-amd64.tar.gz macOS Intel (x86_64) GOAMD64=v1
ivnpd-v0.10.5-darwin-arm64.tar.gz macOS Apple Silicon (arm64) GOARM64=v8.4
ivnpd-v0.10.5-windows-amd64.zip Windows (x86_64) GOAMD64=v2
ivnpd-v0.10.5-windows-arm64.zip Windows (arm64) GOARM64=v8.1
SHA256SUMS Checksum manifest SHA-256 digests for all release archives
ivnpd-v0.10.5.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.5-darwin-arm64.tar.gz$' SHA256SUMS | shasum -a 256 -c -

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

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

Full Changelog: v0.10.4...v0.10.5

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

Image Pinned digest SLSA v1.0 L2 attestation
ghcr.io/gosuda/ivnpd:v0.10.5 sha256:16c1d186051621ca0908722f31be24b594c477255f9fdaf68096e58c6d3feb2c https://github.com/gosuda/IVNP/attestations/74952586
ghcr.io/gosuda/ivnp-reseed:v0.10.5 sha256:724ad04d37f7e93d20c2e2811439fa4ed63d4781da156867ec58ac78688b8304 https://github.com/gosuda/IVNP/attestations/74952615

Verify GHCR OCI image provenance before deploying:

gh attestation verify oci://ghcr.io/gosuda/ivnpd@sha256:16c1d186051621ca0908722f31be24b594c477255f9fdaf68096e58c6d3feb2c \
  --repo gosuda/IVNP \
  --signer-workflow gosuda/IVNP/.github/workflows/release.yml \
  --source-ref refs/tags/v0.10.5 \
  --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.5-linux-amd64.tar.gz \
  --bundle ivnpd-v0.10.5.sigstore.json \
  --repo gosuda/IVNP \
  --signer-workflow gosuda/IVNP/.github/workflows/release.yml \
  --source-ref refs/tags/v0.10.5 \
  --deny-self-hosted-runners