Skip to content

Releases

v1.0.1

Choose a tag to compare

@stevelr stevelr released this 04 Nov 03:33
v1.0.1
816f23d

v1.0.1

  • Hardening & security improvements (BREAKING see below)
  • Adopting semver version numbering, with release branches starting with release-1.0.
  • Fix: extra-container destroy removes container directory on systems without chattr

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 in nix.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 with cannot 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 develop etc. work inside the container without access to the host nix daemon and without modifying the host store. Uses the experimental local-overlay store 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 destroy failed to remove the container directory (rm: cannot remove '.../var/empty': Operation not permitted) on systems without chattr in PATH, e.g. NixOS systems with systemd in stage 1 and no ext filesystems (#4). extra-container now provides chattr (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.y that only receives non-breaking fixes, so a flake input such as github:extra-container/extra-container/release-1.0 picks up patch releases on nix flake update. main is the development branch and may contain breaking changes. Releases are tagged vX.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.