Repository navigation
Description
Overview
Two related issues in the omi-agent VM lifecycle:
- Security — Agent VMs are assigned public internet-facing IPs, exposing port
8080to the entire internet. - Cost — Stopped VMs continue to incur persistent disk charges indefinitely; idle auto-stop is not sufficient.
Issue 1: Public IP Security Exposure
Root Cause
In desktop/Backend-Rust/src/routes/agent.rs, every agent VM is created with a public NAT IP:
"networkInterfaces": [{
"network": "global/networks/default",
"accessConfigs": [{
"type": "ONE_TO_ONE_NAT", // assigns a public internet IP
"name": "External NAT"
}]
}]Both the Rust backend and the Python agent-proxy read this external IP from Firestore and connect over the public internet:
# backend/agent-proxy/main.py
vm_uri = f"ws://{vm_ip}:8080/ws?token={vm_token}"
await client.get(f"http://{vm_ip}:8080/health")
await client.post(f"http://{vm_ip}:8080/ping?token=...")Port 8080 on every agent VM is reachable from the entire internet. The only protection is a bearer token in the WebSocket query string — no network-level isolation exists.
Impact
- Any actor who discovers or guesses a VM IP can probe port
8080directly. - The
omi-agent-vmfirewall tag likely permits broad ingress today. - If the agent service has any vulnerability, it is directly exploitable with no network barrier.
Issue 2: Stopped VM Storage Cost Leak
Root Cause
When a VM goes idle (~30 min without a keepalive ping), the VM shuts down and the GCE instance transitions to STOPPED. However, the 50 GB pd-balanced boot disk is retained because the instance still exists.
The autoDelete: true flag only deletes the disk when the instance is deleted — stopping the instance does not delete the disk.
// desktop/Backend-Rust/src/routes/agent.rs
"disks": [{
"boot": true,
"autoDelete": true, // only triggers on instance *deletion*, not on stop
"initializeParams": {
"diskSizeGb": "50",
"diskType": "pd-balanced"
}
}]A stopped pd-balanced disk costs ~$0.10/GB/month = ~$5/month per idle user VM, accumulating with no upper bound as the user base grows.
Activity
fix(desktop): provision agent VMs without public NAT
fix(security): deny public agent VM port 8080 via firewall IaC
fix(security): phase-1 agent VM harden without private cutover
Git-on-my-level commentedon Jul 23, 2026
Phase-1 progress (partial)
Opened #10391 — supersedes stale #9261.
In this PR (after merge + manual publish):
/health(stops publicdatabaseReadyleak)omi-agent-vmtagStill open on #7326 after this:
Do not close #7326 when #10391 merges — only partial.
fix(security): auth-gate agent VM /health and update callers
test(desktop): contract-test agent VM provision keeps public NAT
feat(security): land deferred phase-3 agent VM firewall IaC
chore(desktop): changelog for agent VM health auth
docs: drop AGENTS.md note to avoid pre-existing lean ratchet
chore(failure-class): register FC-agent-vm-public-health-unauth
fix(security): auth-gate agent VM /health and update callers
test(desktop): contract-test agent VM provision keeps public NAT
feat(security): land deferred phase-3 agent VM firewall IaC
9 remaining items
fix(security): auth-gate agent VM /health and update callers
test(desktop): contract-test agent VM provision keeps public NAT
feat(security): land deferred phase-3 agent VM firewall IaC
chore(desktop): changelog for agent VM health auth
docs: drop AGENTS.md note to avoid pre-existing lean ratchet
chore(failure-class): register FC-agent-vm-public-health-unauth
fix(backend): enable agent-vm reaper to stop idle disk cost leak (#10390
undivisible commentedon Jul 26, 2026
#10686 moves the agent startup artifact and runtime to a versioned Python VM image. The public-NAT/network-isolation and disk-reaper work remains tracked here.
fix(security): phase-1 agent VM /health auth (keep NAT, defer private…
SCA-324: stop idle RUNNING omi-agent VMs in the reconciler (#11755)
SCA-328: do not create Agent VM on every launch warmup (#11759)
feat(agent-vm): minimum spend — delete undemanded capacity, read-only…
fix(backend): enable agent-vm reaper to stop idle disk cost leak (Bas…
Git-on-my-level commentedon Sep 29, 2026
Closing: the agent VM initiative is being retired, so these VM lifecycle issues (public IP exposure, stopped-VM disk cost) no longer apply. If the VM runtime is ever revived, the security hardening described here (private networking, idle disk teardown) should be reapplied from this report.
by AI on behalf of David — if you need David's attention urgently, please @Git-on-my-level and escalate with
need human response.