mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 21:36:40 -10:00
With network policy, an opencode OAuth login devvm doesn't bind (Copilot Enterprise, a provider it doesn't know) reached the VM with its refresh token, against network policy's promise that a VM never holds one, and opencode's config folder's files that aren't settings, such as a .env, were copied unredacted. The VM's copy of opencode's auth.json now has devvm-redacted for such a login's access and refresh tokens, and devvm warns (opencode_login_withheld); API keys for providers devvm doesn't know stay as they are, warned as before. File.VMCopy returns a VMFile (Data, Kept, Withheld). With network policy, the VM doesn't get opencode's files that are neither settings nor Markdown (withheld in sync.go), each named with config_not_copied; AGENTS.md and other Markdown still go. Tests: TestOpencodeUnboundOAuthWithheld (failing before), TestWithheld, TestVMCopies's opencode_login_withheld, sync.txtar's opencode .env and AGENTS.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>