Repository navigation
feat(ui): show the layers each earner got, and choose gVisor per earner from the Fleet page - #916
Closed
Amigadelasmigas wants to merge 8 commits into
Closed
Amigadelasmigas wants to merge 8 commits into
Amigadelasmigas wants to merge 8 commits into
Conversation
…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
… or missing state ok
…eep its runtime through a restore or a later env pin
|
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 49 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. |
…so the key check sees it
…d never leave an earner stopped for a choice - Bitping declares NET_RAW. gVisor is offered to it only when the worker has the runtime registered with --net-raw. Before, the choice was saved and the worker refused every deploy afterwards. - Setting the worker default skips external containers, as the view does, so an external copy no longer pins the managed earner to runc. - A direct deploy that leaves a route checks the runtime choice before it removes the routed copy, so a refusal stops nothing. - An offline worker shows its proxy, fence and gVisor chips as unknown, not as on from its last report. - A choice whose redeploy failed gets a button to try it again.
This was referenced Nov 28, 2026
Collaborator
Author
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 owner should decide how many layers protect the computer, and see which layers each earner really got. Today the page shows neither. Turning gVisor on means editing env variables on the worker, with no way to tell from the UI whether it took.
This PR adds a Security layers row per worker on the Fleet page:
runtime_reasonfield), when an env variable pins it, or when gVisor is not installed.cashpilot-gvisor. Each one downloads from the release tag and checks the sha256 beforesudo. A dev build shows why it has no command.The dashboard row gets a small "fenced · gVisor" badge per copy. Every new string goes through
t(), and the English keys are inen.json.Stack: 3 of 4. #892, #885 and #900 are merged. This PR replaces #894, rebased on main.
Desktop: the deploy route now sends
runtime_choice, but never to a Desktop or Android worker, so the Desktop deploy form needs nothing. The catalog gainsruntime_reasonon three services, so Desktop must read the new field: GeiserX/CashPilot-Desktop#388.Tests:
tests/test_layers_ui.pyhas 42 tests. Each of these mutations made a test fail: dropping the body injection, faking the fence, lifting the bridge-only env lock, treating a stale Secure VM fence as fresh, calling a fence on before it isapplied, sending a stored choice that an env pin now overrules, dropping the lock around the stored choices, and losing the choice in a restore. The fleet staleness check passes with 80 assertions. Full suite on the rebased branch: 12939 passed. The 3 failures are local only, because they need.gitin the test copy.Real browser (dark, headless Chromium), against UI + worker + proxy built from this branch on a throwaway Ubuntu 24.04 box:
runsc-hostnetoncashpilot-isolated, and the row and the dashboard badge said "fenced · gVisor".runc.The Security layers row after Check gVisor went green, on a throwaway Ubuntu 24.04 box. Look at the per-earner lines and the check result:
The dashboard badge per copy, after Honeygain moved to gVisor: