Release v0.3.8 — Kitsune P2P Phase 2#58
Merged
ApiliumDevTeam merged 5 commits intomainfrom Mar 8, 2026
Merged
Conversation
…d hardening Implements the full P2P stack behind the `p2p` feature flag: - QUIC transport with seed-based handshake and Ed25519 identity - Bloom filter gossip for efficient triple announcement - mDNS peer discovery via mdns-sd - Sync manager with tombstone-based deletion propagation (24h TTL) - Persistent peer store (JSON-backed known_peers.json) - Manual peer reconnection with exponential backoff (5s-300s, max 10 retries) - Ping/pong health checks (30s interval, 10s timeout) - Ingress rate limiting per-peer (1000/min) and global (10000/min) - Periodic cleanup of inactive peers, expired tombstones, and stale store entries - CLI flags: --p2p, --p2p-port, --p2p-seed, --p2p-peer, --p2p-mdns
Adds /api/v1/p2p/ routes (behind `p2p` feature): - GET /status — node ID, port, connected peers, gossip/sync stats - GET /peers — list connected P2P peers - POST /peers — connect to a new peer by address - DELETE /peers/:addr — disconnect a peer
Add lock-free accept loop for incoming QUIC connections (Task 0), fix ALPN protocol mismatch on client config, register peers in sync_manager at all connection points, and expose helper methods on P2pTransport for external accept pattern.
feat: Kitsune P2P Phase 2 — Hardening & REST endpoints
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/v1/p2p/*) for status, peer management, and discoveryTest plan
cargo test -p aingle_cortex --features p2p— 94 P2P tests passaingle-cortex --version→ 0.3.8