Repository navigation
How should a browser compute driver report workload identity and provisioning evidence? #6087
hr-o
started this conversation in
Design Discussion
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I tested whether OpenCode could run in a browser tab while OpenShell's supervisor applied network policy and held the provider credential on the host. The prototype works with the unmodified OpenShell v0.1.10 release binaries. I'd like guidance on two parts of the driver contract before proposing an example.
The tab runs an aarch64 Linux guest using unkernel. With Landlock enabled and
net.ipv4.ip_unprivileged_port_start=0,openshell-sandbox capability-probe-launch 65534 65534reported"qualified":trueand Landlock ABI 11. We also gave the sandbox its own PID namespace and mounted a writable tmpfs at/run/openshell-supervisor-ca. (unkernel Landlock PR #116)A Node compute driver starts the stock supervisor on the host. It relays each guest-initiated vsock connection over a WebSocket to the supervisor's Unix socket. The prototype implements create, observe, and delete. On one Windows 11 laptop, with Chrome 158 and the host processes in WSL 2, the sandbox reached Ready. After a live policy update, GET to example.com succeeded, POST returned 403, and a request to example.org was denied. OpenCode completed a task using a placeholder credential in the guest. With the kernel in a Web Worker, the tab stayed hidden for over eight minutes and answered all 12 periodic execs.
vm.generationto decide whether to enforce the driver-selected UID and GID. Our prototype borrows that claim. Under RFC 0012, how should an external driver declare that its workload identity is fixed?network_device_count: 0in its evidence digest, although the host cannot independently observe the running guest's devices. Does OpenShell require the driver to verify that property before confirming enforcement? How should a driver represent a property it trusts the browser to enforce?/proc/<pid>/exefor its root-owned ancestors. Is providing that namespace the expected contract for external drivers, or would you consider a resolver that stops at the sandbox process?Would a small browser driver demonstrating the agreed contract belong under
examples/, or would you prefer an external example?I used Claude Code to build and test the prototype.
All reactions