Skip to content

Stability promise and isolation between owners (1.0.0) - #255

Open
metharda wants to merge 162 commits into
mainfrom
release-1.0.0
Open

metharda wants to merge 162 commits into
mainfrom
release-1.0.0

Conversation

@metharda

@metharda metharda commented Dec 5, 2026

Copy link
Copy Markdown
Owner

dcvm 1.0.0: the 1.x stability promise, isolation between owners, and everything the release audit, the live swarm test and the host matrix found. The full list is in CHANGELOG.md under [1.0.0].

What 1.0 adds

Security fixes (from the audit and the swarm)

Live tests

All live tests ran on throwaway nested hosts.

Final run on this branch (the scripted host matrix, an upgrade from 0.9.13, then owner isolation, nftables events and a reboot on each host):

Host Full matrix (17) Upgrade from 0.9.13 (21) Isolation, nftables events, reboot (25)
Debian 13 pass pass pass
Fedora 45 (SELinux, modular daemons) pass pass pass
Ubuntu 24.04 pass pass pass
Ubuntu 22.04 pass pass pass
Debian 12 pass 0.9.13 can't create a Debian 13 VM there not counted (overloaded test host)
Debian 11 pass 0.9.13 doesn't install unshare once under load (#251)
Ubuntu 20.04 pass 0.9.13 doesn't install pass, except a permissions warning from 0.9.13's leftover log (#254)
Arch pass 0.9.13 doesn't install Arch's stock nftables.service firewall drops VM traffic (#250)
  • The matrix steps: install, version, doctor, create, ssh, json, ports setup/test, backup/restore/export/import, ISO VM create/run/delete, a user through the socket, self-update --force plus --revert, uninstall and its cleanup.
  • The isolation steps: same-owner VMs reach each other, a shared VM is reachable by others, other owners are blocked both ways, spoofed source addresses are blocked, the internet is reachable, share/unshare change it. The same checks are repeated after nft flush ruleset plus doctor --fix, after systemctl restart, stop and start nftables, and after a reboot.
  • Earlier rounds also covered upgrades from 0.9.10, 0.9.11 and 0.9.12 (21/21 each), ARP and routing through the gateway, owner change and restore keeping the right filter, and back-to-back nftables events on Debian, Ubuntu, Fedora and Arch.

Audit and swarm (#215):

CI: shfmt, shellcheck, a bash 5.1 parse and the suite as non-root: 527 passed, 0 failed.

Docs

  • CONTRIBUTING.md states the project's rules.
  • docs/ were checked against the 1.0 code. The roadmap doc became a "Planned for 1.x" line in the README.
  • installation.md lists exactly the tested hosts, with an end-of-life section and "Upgrading to 1.0".
  • security.md lists what host users can still see.

Closes #202, #203, #204, #205, #206, #207, #208, #209, #210, #211, #212, #213, #214, #215, #216, #217, #218, #219, #220, #221, #222, #223, #224, #225, #226, #227, #228, #229, #230, #231, #232, #233, #234, #235, #236, #237, #238, #239, #240, #241, #242, #243, #244, #245

# Conflicts:
#	CHANGELOG.md
#	lib/agents.md
#	lib/core/access.sh
# Conflicts:
#	CHANGELOG.md
#	lib/utils/test-suite.sh
…link already down stays down, self-update pins libvirt's networks to iptables, no broadcast DHCP offers between VMs, no table from a partial VM list, a refused batch kept for doctor (#208)
…update pins network.conf, the refused nft batch (#208)
…n nftables instead of the link, lease-pinned first filters, libvirt rules checked, downgrade and checkout safety (#208, #213, #215)
…grades, libvirt rule checks, downgrade and checkout behaviour (#208, #213, #215)
…s a port left cut off, a lease pin ends with its lease, the installer names chown when another user owns the checkout (#208, #215)
…ase pin ending with its lease, doctor's private-VM jump and cut-port checks (#208, #215)
…ack after nftables.service, libvirt's leftover tables cleared (#208, #213)
…k and when, libvirt's filter pauses on real hosts (#208)
…ts libvirt only for a fallen daemon or a new flush, puts the port forwards back when it gives up, skips ports libvirt or the admin took down, keeps tables of a daemon from before the pin; dcvm-boot.service times out; the SELinux rule is optional (#208, #213)
…k when it gives up, ports set down on purpose, a daemon from before the pin, the optional SELinux rule, dcvm-boot's timeout (#208, #213)
…ables once emptied, names dcvm's missing tables, applies port forwards after libvirt's rules; the nftables drop-in acts only after a flush (#208, #213, #215)
… after VM isolation, the nftables drop-in acts only after a flush (#208, #215)
…module, counts a skip the SELinux line did not, calls a just-started libvirt busy, holds port forwards back while libvirt's network rules are missing (#208, #215)
…x installed the SELinux module, port forwards held back while libvirt's network rules are missing, a saved ruleset hides the flush (#208, #215)
…d loads dcvm's tables while libvirt does not answer (#208, #215)
…hecks dcvm's tables while libvirt does not answer (#208, #215)
…ile it waits, names why --fix could not load dcvm's tables, names the skipped areas on a failed daemon's line (#208, #215)
… --fix could not load dcvm's tables and the skipped areas on a failed daemon's line, rewraps two paragraphs (#208, #215)
@metharda metharda added this to the v1.0.0 milestone Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment