Repository navigation
Scallion setting (fails closed) + tron-headless image for c0mpute browser nodes - #198
Merged
Merged
Conversation
…te browser nodes Scallion (c0mpute network), off by default: - network helper 3.5.0: GET /scallion/status, POST /scallion/install (c0mpute CLI only: --minimal --no-start --no-exec), /scallion/start (only when the doctor says ready:true AND names a loopback socks endpoint that answers), /scallion/stop - extension: Settings section + sidebar button; routes like Tor (SOCKS5 + WebRTC guard), verifies, reverts on failure; exclusive with Tor and Pit - docs/scallion.md, Python + vitest tests tron-headless: - docker/tron-headless: bookworm-slim by digest, ungoogled-chromium 152.0.7977.82-1 sha256-verified, uid 1000, --no-sandbox, CDP via socat on :9222, exits when Chromium or the CMD exits - .github/workflows/tron-headless.yml: smoke test on PRs, push ghcr.io/profullstack/tron-headless:vX.Y.Z + latest on v* tags Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
ThreatCrush Security Scan4 finding(s) in the 21 file(s) this pull request changes. HIGH: 2 | MEDIUM: 2
50 pre-existing finding(s) elsewhere in the repository — **MEDIUM**: 29 | **LOW**: 21Not introduced by this pull request.
…and 30 more; the full set is in the SARIF artifact. Snippets are redacted; ThreatCrush never prints matched credential material. |
…oke script Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Two pieces of distributed browsing on the c0mpute network.
A. Scallion setting (off by default, fails closed)
Scallion is c0mpute's onion-style relay network. Today
c0mpute scallion doctor --mode native --jsonsaysready:falseand there is no local SOCKS client, so this setting shows that plainly and never routes.tron-tor-helper, bumped in the launcher too):GET /scallion/statusreturns{installed, path, version, doctor, ready, socks, routing, error, install}. It finds the CLI viaTRON_C0MPUTE_BIN,PATH,~/.local/bin,$C0MPUTE_HOME/binand~/.c0mpute/bin, and always setsC0MPUTE_NO_AUTO_UPDATE=1.POST /scallion/installruns only on a click:curl -fsSL https://c0mpute.com/install.sh | sh -s -- --minimal --no-start --no-exec.--minimalalone still starts the worker service, so--no-startis required. The script is downloaded to a file first and run with no stdin in a new session, so it never prompts. The endpoint returns the output tail.POST /scallion/startreturns 200 only when the doctor saysready:true, names a loopbacksocks(127.0.0.1:PORT), and that port accepts a connection. Otherwise it returns 409 withnot-installed,not-ready,no-socksorsocks-unreachable, plus the doctor's blockers.POST /scallion/stopclears routing.systemon any failure. It is exclusive with Tor and Pit under the same rules those two follow with each other.docs/scallion.mdcovers the doctor/socks contract for the c0mpute side; the README links to it.apps/desktop/test/test_scallion_helper.py(fake CLI and installer, no network) and vitestscallion.test.jsplus background tests. The network-helper workflow now discoverstest_*.py.B.
ghcr.io/profullstack/tron-headlessdocker/tron-headless/:--no-sandbox(the container is the sandbox).sleep infinity). Whichever exits first ends the container.TRON_WINDOWandTRON_PROXYare supported..github/workflows/tron-headless.yml:--cap-drop ALL --security-opt no-new-privileges --shm-size 1g --memory 2g -p 127.0.0.1:9222:9222, then runsmoke.mjs(Node 22 global WebSocket). The smoke test covers/json/version,Target.getTargets, flatten attach,Page.navigate, a screencast frame and a PNG screenshot, and also checks that the container exits when its CMD exits.v*tags and workflow_dispatch: push:vX.Y.Zand:latestfor linux/amd64 to GHCR. No workflow artifacts.Verified locally: the smoke test passes under the node's docker flags, uid is 1000:1000, killing Chromium ends the container, a CMD that exits 7 ends it with 7,
docker stopexits 143, andTRON_PROXYreaches--proxy-server.🤖 Generated with Claude Code