Repository navigation
docs(security): install, check and undo gVisor from the Fleet page, and list every layer on one page - #895
Open
Amigadelasmigas wants to merge 7 commits into
Open
docs(security): install, check and undo gVisor from the Fleet page, and list every layer on one page#895Amigadelasmigas wants to merge 7 commits into
Amigadelasmigas wants to merge 7 commits into
Conversation
…cales The web UI is English only. This adds what the 20 languages need and changes nothing visible yet: only English ships, so the picker stays hidden until a second locale file exists. - app/i18n: one JSON file per locale; translations carry the hash of their English source and fall back to English when stale or missing. - Language order: saved choice, cp-lang cookie, Accept-Language, English. - t() in templates and the browser, one ICU subset on both sides; server plural rules checked against Node's Intl. - Picker in the avatar menu and the sign-in bar; user_preferences.language with a migration; <html lang dir> on every page.
…ort what each host can give The runtime choice was env-only, so an owner could not pick gVisor for one earner from the UI, and the UI could not show which earners really got it. - The heartbeat reports system_info.layers: the runtimes Docker registered and which are gVisor (judged by the binary, not the name), KVM from sysfs, and what CASHPILOT_CONTAINER_RUNTIME and its overrides pin. Unread values are null, so an older or blind worker reads as unknown, not absent. - Each container entry carries its runtime and network. - A deploy takes runtime_choice, runc or gvisor. gVisor becomes the --network=host variant Docker's DNS needs on our bridge, plus --net-raw for an earner whose catalog declares NET_RAW (Bitping). - A choice that the catalog (Mysterium needs runc) or an env pin overrules is refused with the reason before the running container is touched. The env still wins over the UI; nothing is swapped silently. - No choice means Docker's default, as before.
…h a red/green check Installing gVisor needs root on the host, which the worker does not have and must not get, and a runtime's name proves nothing: runsc-hostnet can point at runc. - scripts/cashpilot-gvisor (install, status, undo) pins gVisor release 20261123.1 by sha512, installs it apart from any runsc the owner has, backs up daemon.json and registers runsc-hostnet and runsc-hostnet-raw with runsc's own installer. It reloads Docker, so running containers keep running; a restart is offered only if the reload is not enough, and always asked for, even with --yes. It refuses on Unraid (pointing to a VM), Docker Desktop, rootless and snap Docker. - undo refuses while a container still uses our runtimes, restores daemon.json byte for byte (or removes only our runtimes after a later edit), deletes the binaries and its state, and checks that nothing is left. - POST /api/layers/gvisor-check runs one probe per gVisor runtime an earner would get, on the earners' network: green needs gVisor's kernel and a working name lookup. The heartbeat carries the last answer.
…er from the Fleet page The Fleet page gets a Security layers row per worker: the socket proxy, the LAN fence, gVisor and KVM for the Secure VM, then per earner whether it is fenced and whether it runs under Standard (runc) or gVisor. The owner picks the runtime per earner or as the worker's default for new earners. A choice the catalog, an env pin or the worker cannot honour is locked with the reason. A running earner is redeployed after a confirm. The row also shows the pinned install and undo commands for cashpilot-gvisor and runs the worker's red/green gVisor check. The dashboard row carries a compact fenced/runtime badge per copy.
…g, as the worker applies it
…nd list every layer on one page Section 7 of home-network-security.md becomes the Fleet page flow: copy the pinned install command, press Check gVisor, choose per earner, undo. It keeps the costs, what breaks, the services we ran under it and the env variables, which now win over the page. The new Security layers page lists each layer, what it guards and what it costs. Security defaults gives the order the worker picks a runtime in.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 26 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 27, 2026
Closed
| views = {} | ||
| for w in await _workers(): | ||
| views[str(w["id"])] = layers_ui.worker_view(w, await layers_ui.choices(w)) | ||
| return {"workers": views, "commands": layers_ui.commands()} |
This branch has not been deployed
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.
The gVisor section of the home network page was still a manual recipe: download,
runsc install, hand-editdaemon.json, set env variables. No page said which layers exist, what each one guards or what it costs.This PR describes the setup that #900 and #894 add:
home-network-security.mdbecomes the Fleet page flow: install, Check gVisor, choose, undo. It also lists what the helper refuses and the exact runtimes it registers. The costs, what breaks, the services we ran under gVisor and the env variables stay. The env variables now win over the page.security-layers.mdlists each layer with what it guards, its default and its cost. It is in the Security nav.security-defaults.mdgives the order in which the worker picks a runtime, andconfiguration.mdsays that the two runtime variables win over the Fleet page.Stack: 4 of 4, on #894.
Desktop: needs nothing. These are web docs only.
zensical build --clean --strictreports no issues, andsite-check.pyreports 106 pages with 0 errors.