Skip to content

feat(scallion): community-owned P2P bootstrap with no default HTTP check-in - #384

Merged
ralyodio merged 2 commits into
masterfrom
feat/scallion-community-bootstrap
Nov 15, 2026
Merged

ralyodio merged 2 commits into
masterfrom
feat/scallion-community-bootstrap

Conversation

@ralyodio

Copy link
Copy Markdown
Collaborator

Summary

Second, independently testable Scallion Network implementation slice: remove the unconditional c0mpute.com bootstrap URL fetch on ordinary startup and support community-owned initial peer contacts.

Changes

  • Default: connect to built-in libp2p seed multiaddrs without an HTTP request to a Profullstack domain.
  • C0MPUTE_BOOTSTRAP_MODE=community dials only independently configured peers; never silently falls back to built-in seed operators.
  • C0MPUTE_BOOTSTRAP_MODE=offline skips WAN bootstrap contacts; LAN mDNS stays controlled separately.
  • C0MPUTE_BOOTSTRAP_PEERS and C0MPUTE_BOOTSTRAP_FILE accept local full peer multiaddrs (trailing /p2p identity mandatory).
  • Opt-in C0MPUTE_BOOTSTRAP_URL HTTPS feed or C0MPUTE_BOOTSTRAP_FETCH=1 to restore historic directory-fetch behavior.
  • Validate version and Kad protocol before accepting JSON feed entries; never append a conflicting peer-id; deduplicate peer addresses.
  • Tests for default no-directory-check-in, community-only/zero fallback, offline mode, local address validation, feed transport and identity verification.
  • Documentation at docs/protocol/scallion-bootstrap.md.

Security boundaries

This PR is not a VPN, layered-encrypted onion transport, or IP anonymizer.
A directly dialed bootstrap peer still sees its caller's network address.
The existing libp2p NAT traversal relay is not Scallion's future encrypted traffic circuit. Export controls and applicable service-level compliance obligations remain unaffected.

Dependency

Companion to Scallion route-planning PR #383. This PR is independently based on master; it references docs/protocol/scallion-network.md that #383 adds.

Validation

cargo test -p c0mpute-net bootstrap unit tests, full workspace Rust CI, and cross-platform release build required. Do not ship as anonymity technology.

@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

14 finding(s)

HIGH/CRITICAL: 2 | MEDIUM: 8 | LOW: 4

Severity Rule Location
HIGH js-ssrf-outbound-request apps/web/public/sw.js:24
HIGH sh-remote-script-execution scripts/install.sh:611
MEDIUM js-unescaped-html-sink apps/web/src/app/blog/[slug]/page.tsx:53
MEDIUM js-unescaped-html-sink apps/web/src/app/layout.tsx:109
MEDIUM sql-template-interpolation apps/web/src/lib/chat/convo-store.ts:116
MEDIUM sql-template-interpolation apps/web/src/lib/chat/convo-store.ts:117
MEDIUM sql-template-interpolation apps/web/src/lib/chat/push.ts:476
MEDIUM js-dynamic-code-execution apps/web/src/lib/router/verify.ts:91
MEDIUM sh-remote-script-execution scripts/dev-setup.sh:25
MEDIUM sh-eval-expansion scripts/dev-setup.sh:35
LOW py-ssrf-outbound-request examples/business-strategist-agent/chat.py:37
LOW py-ssrf-outbound-request examples/business-strategist-agent/train.py:54
LOW secret-generic-credential node/crates/c0mpute-core/src/webhook.rs:1171
LOW py-path-traversal node/crates/c0mpute-core/tests/fixtures/fake-infernet-text:29

Snippets are redacted; ThreatCrush never prints matched credential material.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant