mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 21:36:40 -10:00
The proxy keeps the CA it started with, because its VM trusts no other, so a VM that runs past its CA's end without a launch can't verify the proxy's certificates. Leaves were minted for a day whatever the CA had left, so they could outlast it, and once it ended every intercepted tunnel failed its handshake with a misleading reason. leafFor now caps a leaf's NotAfter and NotBefore at the CA's, keeps a leaf that ends with the CA until then, and mints none once the CA has ended (errCAEnded); a CONNECT that would be intercepted then gets 403 before its tunnel opens (caEndedRefusal), logged as a refused block, so no allow rule is suggested, with a reason that says to open the VM again, which makes a new CA, installs it and starts the proxy again. Docs: how a VM trusts the CA and what happens at its end (internals network and security, safety network), the proxy's README. Tests: TestLeafWithinCA, TestInterceptCAEnded (proxy). Co-Authored-By: Claude Opus 5.5 <[email protected]>