Files
devvm/testdata/script
w3cjandClaude Opus 5.5 782f67e4ad fix(netpolicy): keep the proxy's password out of every process's arguments
The VM's proxy URL, password included, reached the guest through
limactl edit --set .env and smolvm machine update -e, both visible to
other local users with ps.

- lima: startSets puts a stand-in (devvm-proxy-password) in the .env
  edit; fillPassword then replaces the stand-in URL with the real one in
  the VM's lima.yaml, rewritten atomically mode 600, refusing a URL with
  characters YAML treats specially or a lima.yaml without the stand-in.
- smolvm: the proxy variables are no longer machine env. Start writes
  smolvm/vms/<vm>.proxy (mode 600) with the URL under network policy and
  removes it without; every devvm exec (userArgs, asRoot) names it with
  machine exec --secret-file, so smolvm reads it. create's --secret-file
  is ignored by smolvm for machines made from a pack. Proxy variables
  left in an older machine's env are removed; rm deletes the file;
  updateQuiet is gone (update prints no secrets now).
- stubs: limactl's edit writes --set .env into lima.yaml; smolvm's exec
  fails on an unreadable --secret-file.
- tests: TestStartConfined (both backends), TestFillPassword, network
  and smolvm testscripts check the password is in no stub call and is in
  the file, mode 600.
- e2e: network and smolvm sample ps every 0.1 s during the launch
  (ps_watch) and check the password is in none, nor after, with the
  guest's environment (and on smolvm Docker's daemon) as the control.
- docs: lima.md, smolvm.md, network.md, design.md, contributing.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 11:31:40 -06:00
..
2026-10-24 09:50:15 -06:00