Skip to content

feat(scallion): native and OpenVPN client modes, fail-closed readiness and profile builder - #390

Merged
ralyodio merged 11 commits into
masterfrom
feat/scallion-dual-client-modes
Nov 15, 2026
Merged

ralyodio merged 11 commits into
masterfrom
feat/scallion-dual-client-modes

Conversation

@ralyodio

Copy link
Copy Markdown
Collaborator

Implementation

Add a concrete, independently selectable native Scallion and OpenVPN Connect client-mode contract without claiming that an unimplemented tunnel can connect.

  • New c0mpute_net::scallion_clients: ClientMode::{Native,OpenVpn}, explicit verified local readiness gates (encrypted multi-hop, opt-in exit, DNS/IP fail-closed, adversarial integration tests, independent security review, and mode-specific TUN or OpenVPN gateway adapter).
  • Add c0mpute scallion modes [--json] and c0mpute scallion doctor --mode native|openvpn [--json] to expose current build status. Both modes accurately report not ready until a real client/entry backend exists.
  • Add an internal OpenVPN Connect .ovpn profile generator for a pre-provisioned operator gateway with public DNS/IPv4 entry, pinned CA and expected certificate name, server-certificate verification, interactive user auth, basic PEM syntax and directive-injection restrictions. It does not embed secrets or write system routes.
  • Keep modes independent and fail closed: there is no automatic unprotected direct traffic fallback, nor automatic switch between native and OpenVPN.
  • Unit tests for both modes, readiness prerequisites, clap parsing, config-generation safety, injection and missing TLS identity.
  • Update docs and stale bootstrap wording. Clarify existing libp2p NAT relays are NOT encrypted anonymity circuits.

What this does not implement

No working native TUN adapter, OpenVPN protocol server, layered-encrypted multihop data plane, DNS protection, platform kill switch, or VPN connection is implemented.

The .ovpn generator is not a live CLI export command until verified gateway provisioning and DNS/tunnel leak tests are implemented. The syntax checker is not an X.509 cryptographic validation library; a future authenticated gateway provisioner must establish trust. Do not deploy an unreviewed exit proxy.

Test plan

cargo test -p c0mpute-net scallion_clients --locked
cargo test -p c0mpute-cli scallion_cli --locked
cargo test --workspace --locked
cargo build --workspace --all-targets --locked

Use standard Rust/security CI before merging. This PR is a groundwork milestone for #386 and #389. Separate, independently audited data-plane and gateway PRs are mandatory before promoting production anonymity claims.

This is for privacy-preserving, legitimate network access; it does not remove applicable export-control, sanctions or service-specific identity requirements.

@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