Repository navigation
Releases
Releases · extra-container/extra-container
v1.0.1
v1.0.1
- Hardening & security improvements (BREAKING see below)
- Adopting semver version numbering, with release branches starting with
release-1.0. - Fix:
extra-container destroyremoves container directory on systems withoutchattr
Hardening and security improvements
BREAKING: with default settings, the host nix daemon socket is no longer accessible inside containers.
- Before (<= v0.17): every container could connect to the host nix daemon (the NixOS container module bind-mounts
/nix/var/nix/daemon-socket). The daemon identifies clients by host UID, so container root, and any container user whose UID matched a host user innix.settings.trusted-users(e.g. via@wheel), was a trusted nix user, which is equivalent to root on the host. Untrusted container users could also reach daemon vulnerabilities such as CVE-2026-110450. - After: the socket is masked. Inside the container, nix commands that build or substitute (
nix build,nix run,nix develop,nix-shell) fail withcannot connect to socket at '/nix/var/nix/daemon-socket/socket'. - To restore the old behavior for a container:
extra.hostNixDaemon = true;. Read the option description and the Security section of the README first.
Enhancements
- New option
extra.overlayStore.enable(default: false): run a nix daemon inside the container with a private store layered over the host store (OverlayFS).nix build,nix developetc. work inside the container without access to the host nix daemon and without modifying the host store. Uses the experimentallocal-overlaystore type. Builds run without the nix sandbox, which doesn't work in nspawn containers. - New option
extra.overlayStore.gcRoots.enable(default: true): periodically add host GC roots for host store paths used by the container's store, so that host garbage collection doesn't break the container store. - README section Nix inside containers: how the overlay store works and the consequences of enabling it.
Fixes
extra-container destroyfailed to remove the container directory (rm: cannot remove '.../var/empty': Operation not permitted) on systems withoutchattrinPATH, e.g. NixOS systems with systemd in stage 1 and no ext filesystems (#4). extra-container now provideschattr(e2fsprogs).
Semver
- Adopting semver version numbering (major.minor.patch, with an optional pre-release suffix such as
-pre.1). Breaking changes always bump at least the minor version. - Each minor version will have a branch
release-x.ythat only receives non-breaking fixes, so a flake input such asgithub:extra-container/extra-container/release-1.0picks up patch releases onnix flake update.mainis the development branch and may contain breaking changes. Releases are taggedvX.Y.Z. See RELEASING.md. - Current release branch:
release-1.0. If you pin the branch in your flake input, follow the repo for release announcements.