devvm upgrade and install.sh accept a release's SHA256SUMS when any two
of three release keys signed it (CI's, the co-signer's and an offline
recovery key's), each in SHA256SUMS.<role>.minisig, checked only against
its own role's key, with the trusted comment devvm-release <version>
compared exactly; one signer counts once. While releases bridge from it,
the old release key's single SHA256SUMS.minisig (devvm <version>) still
passes alone, so 0.1 and 0.2 keep upgrading and --to/--version can
install them; install.sh now checks that key's trusted comment too.
The keys themselves aren't made yet, so packaging/keys holds none and
install.sh's three key lines are empty: a devvm built so checks each
release with the old release key alone, and a release that only the
release keys signed is refused. Releases go out as before, signed with
the old key, until the keys are made and added, all three at once.
- internal/minisign: the one owner of signature checks (moved from
internal/upgrade): ParsePublicKey, PublicKey.Check (comment always
compared), Role (CI, Cosign, Recovery), Kind (Release, Base),
Kind.Comment, SigName, KeyFile, Keys/NewKeys/Keys.Check (two of three,
distinct keys and key IDs). minisigntest/ signs for tests. Stdlib and
blake2b only (depguard), a leaf; FuzzCheck, FuzzKeysCheck,
FuzzParsePublicKey.
- The structure test's signatures rule: outside internal/minisign no
code calls ed25519/rsa/ecdsa's Verify functions or imports blake2b,
but signatureFree's files (ubuntu/pgp.go, proxy/nixcache.go).
- internal/upgrade: Source.Keys, checkSums (signatures.go); the bridge
in legacy.go (checkLegacy, legacyKey, Source.Key); FuzzSumOf.
- packaging/keys/release-{ci,cosign,recovery}.pub, none yet;
packaging.Key ("" without one). TestReleaseKeys (checkReleaseKeys:
none, or three distinct minisign keys, none the old key),
TestCheckReleaseKeys (fixture keys from minisigntest),
TestInstallScriptKeys (checkInstallScriptKeys: one line per role,
empty without keys), TestReleaseRefusesPlaceholders (no key in keys/
marked PLACEHOLDER).
- scripts/release.sh (a tag, --check, --tag; never a snapshot) needs
none or all three of packaging/keys' release keys. With none,
install.sh's release_<role>_key lines are empty or missing; with all
three, each is a minisign key, distinct, not the old release key, not
marked PLACEHOLDER (placeholder), and equal to its install.sh line.
- install.sh checks with minisign -VHQm: prehashed signatures only.
- The structure guard also flags dot imports of the verifier packages
and calls of x509's CheckSignature* method names.
- install.sh: release_<role>_key lines, download_signatures (a role's
signature only when the script has its key), check_signature,
signed_by_two, check_legacy; plainer warning without minisign, with
the commands to check by hand.
- Tests: signatures_test.go (TestFetchWithoutReleaseKeys among them),
upgrade.txtar (-legacy, -keys, and the keys built in, none),
install.txtar (stub minisign with -Q; NO_KEYS), install_minisign.txtar
(real minisign), release.txtar (none, nolines, nokeyline, old, marked
and the rest); DEVVM_RELEASE_KEYS override.
- Docs: internals/install.md, using/upgrading.md, maintaining.md's
Release keys, structure, tests, testing, SECURITY.md, CHANGELOG,
releases/0.2.0.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
README.md, SECURITY.md and How it works' install page show the minisign
public key, and the install page links to Checking the install script:
download install.sh, SHA256SUMS and its signature, check the signature
with the key (minisign -Vm SHA256SUMS -P KEY), the script against the
sums (shasum -a 256 -c --ignore-missing), then run it. A key from the
docs, not the release, catches a release replaced whole.
TestDocsShowTheKey checks that every key in README.md, SECURITY.md and
docs/content is minisign.pub's, and that the three pages show it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The command line names the four network tiers. --network TIER (open,
internet, allowlist or none) chooses a new VM's tier, checked before
anything runs (arg_not_choice). devvm network open|internet|allowlist|none
gives the folder's VM a tier through Net.SetTier, and devvm network -g
takes the tiers and ask. config.toml's and settings.json's network is ask
or a tier (settings.NetworkChoices, checked against netpolicy.TierNames
by a test, since settings can't import netpolicy).
The question on creation is Proxy.Choose(vm): net_about says what each
tier reaches, net_ask asks for one (Answer, AnsweredBy("--network")),
Enter or a refusal gives allowlist, and an answer that isn't a tier is
warned of (net_tier_unknown) and asked again. devvm setup's picker
offers ask and the four tiers (network_default_open, _internet,
_allowlist, _none). On an existing VM, --network is ignored with the
devvm network TIER command that changes it.
devvm network --json: policy is the tier or unenforced, and each policy
file whose denies alone apply (internet and none) has denies_only: true,
as the text output's "(denies only)", so a script can tell a file's
denies from all of its rules without knowing the tier rules.
Messages reworded: net_tier_backend (--network open), net_open_policy
(devvm network allowlist), net_about, net_ask, network_default*,
net_default_failed, network_failed, setting_already's and
widen_parent_vm*'s descriptions. safety/network's "Choosing a tier"
replaces its on/off section; docs, the cli skill, testscripts and e2e
use the new forms, and e2e's internet and none checks go through devvm
network.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Attack vectors' Narrowed, not closed and Left to you are the one
residual-risk list, each entry linking to its mechanism. The security
model's What it doesn't protect list goes, its facts moved there (and
its set-id mechanism into a section of its own); safety/network's Not
covered, the Nix cache's What stays open and design notes' user-facing
Not covered items link to the list instead.
Fixes the drift: the CA entry gives the next CA's key on disk up to 23
days (a copy working up to 53 days), the Nix side channel is listed,
devcontainer.json's image lookup through a company proxy and its ports
are listed, and remote forwards say what the VM's sshd refuses and what
it doesn't. Adds the proxy and login residuals: keys devvm can't tell apart, the
company proxy's reach and password (Lima's files, run-log redaction
gaps, Lima's log, host mise's environment), the internal-address
refusal reason, the CONNECT limit's uncounted requests, and the company
CA.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- doctor --json: backend_source goes (it could only be built-in).
- AgentWhileRunning and the agent_on_risk_running and
agent_devvm_risk_running messages go: nothing sets the field.
Confinement.SSH, NoAgent and AgentFixed stay, as the generic
emulation contract for ssh and agent-toggle.
- The unused experimental badge goes: its shortcode, Markdown version,
partial, CSS, llms.txt filter and flask icon.
- Messages: space_backend_unknown, space_stray, gc_backend_skipped and
gc_orphans_unknown start with "The lima backend" instead of a
lowercase name; backend_lacks and backend_unreviewed point at doctor's
features, not other backends; space_caches_note says Lima's caches;
setup_in_config's description no longer names a backend key.
- Docs: "on every backend" and similar leftovers go (limits, devcontainer,
images, ports, lima, design, the docs index); space's "Lima's caches";
safety/network and security say every Lima VM can have network
policy; images says a docker-layer VM keeps it; ports.md says devvm
records every VM's ssh port; security's set-id paragraph says where a
root-owned file comes from; Contributing lists the invariants a new
backend's threat check covers.
- AGENTS.md: msg.IDOf, now used only by tests, joins deadcode's list.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
README: the landing page's pitch and what a VM gets, install, a first VM
with the network policy prompt and the build lines, working on a clone,
staying safe, and links to every docs section on devvm.dev.
Landing page: network policy on by default, --clone in its own bullet,
agents' secrets instead of API keys.
SECURITY.md: Verifying a release in full sentences with a link to the
signature's page, secrets in What counts, VMs without network policy
spelled out in Out of scope.
assets/oci/README.md, internal/proxy/README.md: a light docs-voice pass;
container image, a secret, the decider token.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sections move verbatim; new pages open with a one-sentence placeholder.
Moved pages: safety/clone.md -> using/clone.md; safety/security.md ->
internals/security.md.
New pages: using/ports-size.md, using/settings.md,
using/troubleshooting.md, internals/overview.md, internals/install.md,
internals/images.md, internals/ports.md (placeholder only),
internals/network.md, internals/git-protection.md,
internals/backends.md, internals/lima.md, internals/smolvm.md,
internals/docker.md.
Moved sections:
- getting-started/install.md: the install script's steps, the Docker
Linux-build fetch, the signature paragraph, doctor --fixes and its
keys, "devvm is one binary", removing old versions -> internals/install.md
- getting-started/commands.md: An existing VM, Stopping a VM, Deleting a
VM -> internals/overview.md; Size and ports -> using/ports-size.md;
Environment -> using/settings.md
- using/images.md: Ubuntu's cloud image, Versions, Building tools,
Building, Caching (Rebuilding, Outdated VMs) -> internals/images.md;
Ports, Size, Disk use -> using/ports-size.md; Where state lives ->
using/settings.md; Build logs and interrupts -> using/troubleshooting.md
- using/from.md: How it's converted (The image is untrusted), Digests ->
internals/images.md
- using/coding-agents.md: MCP servers, Keys in settings files ->
internals/network.md
- safety/network.md: the start-up list, The proxy, The self-check, How
the proxy puts them in, Agents' logins and settings, devvm _proxy ->
internals/network.md
- safety/git-protection.md: What's locked, On each launch, What a lock
can't stop -> internals/git-protection.md
- safety/attack-vectors.md: Staying safe -> safety/_index.md (The
habits), with a copy of the security model's reach table
- backends/_index.md: Features, Missing and unreviewed features, VM names
-> internals/backends.md
- backends/lima.md: A Lima home of its own, Confinement, Clones and
overlays, Ports -> internals/lima.md
- backends/smolvm.md: Its machines through No init system ->
internals/smolvm.md
- backends/docker.md: What's devvm's in Docker, Building images, What
devvm sets on a VM, Network policy, No init system, ssh for editors,
Ports, SSH agent forwarding, Shared tools -> internals/docker.md
Titles and weights follow the target tree; How it works is weight 95,
after the CLI reference. Index pages list the new pages. Links, message
doc links (internal/msg/docs.go), the home page, README.md, SECURITY.md,
internal/proxy/README.md and AGENTS.md point at the new places.
Contributing and AGENTS.md say what goes on user pages, How it works and
Contributing.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The site's base URL, the doc links devvm prints, the README, CONTRIBUTING,
SECURITY and the home page recording point at https://devvm.dev; the local
server is at http://localhost:1313/.
lint runs lint:code (golangci-lint, shellcheck) and lint:docs (markdownlint,
Vale, lychee, TestDocLinks). CI skips changes only to docs/ and Markdown
files, except the generated CLI reference; the Docs workflow lints and
builds the site on pull requests touching the docs and deploys from main.
mise-action goes to v5.2.4.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The docs move into a folder per sidebar section, in the order a new user
needs them: getting-started (install, first-vm, commands), using (images,
customizing, from, devcontainer, coding-agents, ssh, limits), safety
(attack-vectors, network, clone, git-protection, security), backends
(backends.md as the section's _index.md, lima, smolvm, docker), internals
(design), cli, and contributing (contributing.md as its _index.md,
testing, maintaining). Each section has an _index.md listing its pages,
and the docs index is grouped the same way. Commands is now Everyday
commands, SSH is SSH and editors.
New pages:
- safety/attack-vectors.md: Staying safe first (seven habits), then
common attacks sorted into Blocked, Kept inside the VM, Narrowed, not
closed, and Left to you.
- getting-started/first-vm.md: making a VM, the first run, what's in it,
coding agents, coming back to it.
Links to Staying safe from the home page, README, security, install,
coding agents and clone. Every relative link, the home page's, the
README's, SECURITY.md's, CONTRIBUTING.md's, AGENTS.md's, the proxy and
oci READMEs', release.sh's hints and the recording's URL use the new
paths. internal/msg/docs.go names pages by path (using/images#...), and
checkDoc takes a section's _index.md for its folder (backends#...).
contributing/_index.md describes the sections and how links name them.
Also carries the docs edits made alongside the forwarder work in the
tree (backends, images, limits, security, design, commands and the
generated devvm ports page), whose code isn't in this commit.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every page of the docs is now here, rewritten, or merged:
- design.md: why shared tools are images, Linux overlays, devvm's own
Lima home, failed attempts, things learned, open work and risks, and
a section for emulation design notes (none yet: Lima is all native).
- limits.md: the known limits, each linking its page.
- _index.md: lists Known limits and the contributor pages (testing,
maintaining, design).
- SECURITY.md: reporting, verifying a release (shasum --ignore-missing,
as a release has several archives), what counts, out of scope; links
to the docs site.
Fixed against the code:
- testing.md: tokens on Linux are owner-only files in
~/.config/devvm/secrets/, not "not yet".
- from.md: devvm writes an image only Docker has into the build VM's
folder, before the VM starts.
- oci/README.md: no lima.yaml is written; outputs are checked once the
build VM is deleted.
- security.md: tool builds write into a folder of their own; Codex and
opencode logins and MCP secrets without network policy; the link to
SECURITY.md.
- backends.md links the design notes; AGENTS.md names
docs/content/docs/design.md for them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>