Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Mar 7, 2026
Merged
Closed
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.
Sandbox Infrastructure Changes
1. Clock Skew Fix (Golden Snapshots)
Problem:
VMs restored from snapshots had frozen clocks, causing
apt-get updatefailures (“release files from the future”).Root Cause:
Firecracker
LoadSnapshotsupportsclock_delta_us, but we never passed it.Fix:
Added
SnapshotedAt time.TimetoSnapshotMetaAdded
snapshotClockDeltaUs()to compute elapsed time since snapshotmtimefor legacy snapshotsPass
clock_delta_usto Firecracker on all restore paths:Files:
internal/firecracker/snapshot.gointernal/firecracker/api.go2. eth0 Network Fixes (Checkpoint Resume)
Problem:
Preview URLs stopped working after checkpoints because
eth0remained down.Root Cause:
Checkpoint process brought
eth0down but never restored it.Fix:
Restore network via
reconfigureGuestNetwork()after agent reconnectRestore
eth0on error paths:PauseVMfailureConsistent network quiesce:
ip addr flush dev eth0ip link set eth0 downFile:
internal/firecracker/snapshot.go3. Worker TLS via Cloudflare
Problem:
Workers were exposed over plain HTTP (
http://IP:8080).Solution:
Cloudflare proxy with origin certificates.
Flow:
CLI → https://w-*.workers.opencomputer.dev/
→ worker :443 (Cloudflare TLS)
Control plane → http://private_ip:8080
Changes:
:443if origin certs existcloudflare.envFiles:
cmd/worker/main.gocmd/server/main.godeploy/ec2/setup-instance.shinternal/compute/ec2.gointernal/config/config.gointernal/controlplane/redis_registry.gointernal/proxy/controlplane_proxy.gointernal/worker/http_server.gocmd/oc/internal/commands/shell.go4. CLI Cleanup
connectURLfrom human-readable CLI outputFile:
cmd/oc/internal/commands/sandbox.go# Sandbox Infrastructure Changes