Commit Graph
143 Commits
Author SHA1 Message Date
e2ace95369 UI, Linux & docs: volume/network usage, log sort toggle, fontconfig stall recovery, and docs fixes (#1099)
- Volumes & Networks `Used by` column (`#1062`): show container consumer counts, per-state badges, and escaped container-name tooltips on Volumes and Networks across macOS, Windows, and Linux, with `Used by` column sorting on Volumes.
- Window script type-check fixes (`#1033`): pass `String(!on)` to `aria-pressed` in `setRail`, check `Number.isNaN(d.getTime())` in `dgTime`, and sequence `closeMenu()` / `showMenu()` in a block in `[data-smore]`.
- Log sort order toggle (`#1081`): add `Oldest first` (default) / `Newest first` sorting across Container detail Logs, Compose project Logs, and Pod Logs across macOS, Windows, and Linux, preserving live streaming, scroll pinning, search/level filtering, and translations across all 41 locale files.
- Linux `fontconfig` WebKit stall recovery & doctor warning (`#1078`): add a 5-second startup watchdog in `gtk.rs` that detects a `WebKitWebProcess` startup stall with a populated user `~/.cache/fontconfig`, logs the cause to `ui.log`, records a cache fingerprint bypass stamp, and re-launches cleanly with `XDG_CACHE_HOME=~/.kiri/cache/ui`, restoring user `XDG_CACHE_HOME` for spawned terminals and surfacing an actionable `fc-cache -rf` warning in `kiri doctor`.
- Docs & fix registry (`#1080`): fix the relative link to `testing-windows-arm.md` in `docs/development.md` and record recent unreleased bug fixes in `docs/fix-registry.md`.

Fixes #1081
Fixes #1078
Closes #1062
Closes #1033
Closes #1080

Co-authored-by: shihh <shihao1016@qq.com>
Co-authored-by: AnuchitO <3372362+AnuchitO@users.noreply.github.com>
Co-authored-by: Bryan Lundberg <119996547+bryanlundberg@users.noreply.github.com>
2026-12-01 11:38:12 +01:00
Precious Okwu 66f0c41ef0 Setup: Kiri's compose and buildx no longer replace other engines' plugins (#1054)
kiri setup on macOS no longer adds Kiri's plugin folder to cliPluginsExtraDirs in ~/.docker/config.json, which put Kiri's docker-compose and docker-buildx ahead of other engines' plugins for every Docker context.

Setup now removes Kiri's entry from an earlier setup and links each plugin into ~/.docker/cli-plugins only when the Docker CLI would find none. A plugin that is someone else's is kept and named in one line. A Kiri link that hides a plugin installed later is removed. kiri setup --uninstall removes the links that point into Kiri.

Fixes #1042
2026-11-30 05:34:28 +01:00
Precious Okwu dbaa28c4ed Linux packages bundle the pinned kiri-forge; Kiri Forge 0.1.1; 0.3.0 notes (#1048)
The Linux package build now fetches the pinned kiri-forge for each architecture, checks it against the SHA-256 in cli_pins.rs and bundles it, as the Mac and Windows builds do; before, /usr/bin/kiri-forge in the packages was a link to kiri. A release build stops if the binary is missing.

The bundled Kiri Forge is 0.1.1. docs/releases/0.3.0.md holds the notes for 0.3.0 and docs/releases/0.3.0.announce.json its announcement.
2026-11-30 00:55:37 +01:00
Precious Okwu b66d3e3ad9 Kiri Forge: Kiri's own build engine, on by default (#1039) 2026-11-29 20:51:21 +01:00
Precious Okwu f1b558caa6 Guest kernel: repair unfinished L4 checksums on unflagged virtio-net RX frames (#1029) (#1037)
Another bridged/shared VM on the same Mac can reply to Kiri's Mac IP with TX checksum offload still unfinished (pseudo-header sum only). Because Virtualization.framework's NAT forwards the frame inside macOS without passing a hardware NIC or setting VIRTIO_NET_HDR_F_DATA_VALID, the guest drops the replies on both host and bridged-container paths.

Add 0011-virtio-net-repair-unfinished-checksums.patch in virtnet_receive_done() before 0002's big-TCP GSO hook to verify unflagged non-GSO IPv4/IPv6 TCP, UDP, ICMP, and ICMPv6 packets, rewrite invalid L4 checksums in place (leaving fragments, malformed headers, IPv6 extension headers, and IPv4 UDP checksum 0 untouched), and mark them CHECKSUM_UNNECESSARY.

Thanks to @JDENredden for the detailed diagnosis and initial patch.
2026-11-29 15:02:03 +01:00
Precious Okwu 238aafa334 import: strip OrbStack /mnt/mac bind prefix and allow digest-pinned RepoTags on load (#1025) 2026-11-29 01:55:28 +01:00
Precious Okwu 2627ed3cdd Update next release references from 0.2.3 to 0.3.0 (#1023) 2026-11-29 00:26:05 +01:00
Precious Okwu 67808ef8b0 Harden image diff_ids, mounts/volumes, caller/WSL gates, networking/DNS, AppArmor, Kubernetes, UI, and updaters (#1013)
* security: harden mount/volume confinement, WSL roots, caller gates, labels & domain routing

* net: isolate --internal bridges/DNS, support gateway_mode_ipv4 & host_binding_ipv4

- GHSA-gp5c-4g58-vr24 & #1010: enforce nftables isolation for --internal
  bridges across prerouting (early accept before HOST_ADDR/WSL_HOST_ADDR/
  EGRESS_ROUTES redirects), forward (iifname/oifname cross-bridge drops in
  both ip and ip6 tables even when non-internal subnets are empty), input
  (allow only bridge gw4 or NDP+gw6 on plain internal bridges; drop all
  on gateway_mode_ipv4=isolated / inhibit_ipv4=true), and postrouting
  (never masquerade internal subnets; disable IPv6 on IPv4-only internal
  bridges).
- GHSA-7x2g-c7pw-mpc6: refuse external UDP and TCP DNS forwarding on
  internal-only containers before custom --dns and AAAA handling, track
  all container bridges including kiri0 across spawn/NetAttach/NetDetach
  with vacuous internal_only when disconnected from all networks, and
  bind per-bridge UDP and TCP gateway DNS listeners with SO_BINDTODEVICE
  when bridge != kiri0.
- GHSA-vmx6-3c4p-cjr2 (#985): honor com.docker.network.bridge.host_binding_ipv4
  for TCP and UDP published ports with empty HostIp while keeping empty
  value as unset, validating Ipv4Addr at network create and use, and
  preserving #1011 names_sync lock ordering around container start gate.
- #1000: honor com.docker.network.bridge.enable_icc=false via IFLA_BRPORT_ISOLATED.
- #1008: support KIRI_HOST_LOOPBACK=off to block host loopback via host.docker.internal.
- #992: refuse 'default' network name and network/broadcast IPAM gateway or
  auxiliary addresses for prefix < 31 without /31 or /32 shift overflow.

* Verify image rootfs.diff_ids, pin managed BuildKit, and bound rmtree FDs

* security: fix AppArmor profile, WebView URL/CSP/i18n, k3s kubeconfig/pinning, elevation TOCTOU & MSI verification, and diag redaction

- GHSA-xx5v-42pc-2x72: enforce Linux AppArmor kiri-default profile with
  PROC_SUPER_MAGIC verification on /proc/thread-self/attr/apparmor/{exec,current}
  and Host::Absent no-op on SELinux/VM/WSL2 hosts.
- GHSA-hmxq-c9pq-2fm2: add strict weburl allowlist (preserving all 13 exact
  URLs and non-empty docs.docker.com/go/ subpath check), localUrl plainHost
  validation (preserving rports running/serving guard), strict WebView CSP and
  navigation blocking on macOS/Linux/Windows, typed numeric coercions in
  hubrows/sharing, and strict i18n tag+attribute parity enforcement.
- GHSA-9mjv-25f8-p9p9: replace raw k3s kubeconfig line pass-through with a
  strict line-by-line allowlist parser rejecting exec/auth-provider/file-path
  credentials and YAML anchors/flow collections, and pin default
  rancher/k3s:v1.37.1-k3s1 multi-arch index and per-arch config digests.
- GHSA-vc32-9whf-m39j / GHSA-wjfx-gjxf-6h52 / GHSA-hx2c-xfr4-jqm2: fix
  AppleScript backslash-before-quote escaping in setup::as_admin, eliminate
  all TMPDIR staging before root elevation in setup.rs and usb/helper.rs
  (verifying SHA-256 on {bin}.new as root before codesign and atomic mv), and
  enforce private staging + SHA-256 + WinVerifyTrust Authenticode / optional
  Ed25519 signature verification in kiri-win/update.rs and kiri.ps1.
- #994: redact truncated secret JSON string values at end-of-input in
  kiri diag.

* Keep rmtree deep-readonly test setup at O(1) open FDs and parse URL host in domain-label test
2026-11-28 14:12:38 +01:00
Precious Okwu 318a70468a Format Windows npipe context URLs with four slashes everywhere and self-heal two-slash contexts (#1012) 2026-11-28 11:05:55 +01:00
Precious Okwu c3a0d85255 Fix macOS virtiofs chown invalidation, secondary network start race, and Windows/WSL binds (#1011) 2026-11-28 10:43:53 +01:00
Precious Okwu 6aa889d16f Avoid clobbering Windows docker contexts through WSL symlinks and ignore empty KIRI_UPDATE_URL (#269, #984) (#1004) 2026-11-28 01:31:35 +01:00
Precious Okwu 5bed18b4cf Support kiri update --check in the Windows CLI (#984) (#1003)
* Support kiri update --check in the Windows CLI (#984)

* Enable docker::is_container_update on non-test Windows builds
2026-11-28 01:08:18 +01:00
Precious Okwu ae433de6c9 Fix virtiofs deleted-file revalidation, offline kiri domains, netns takeover, 429 manifest retries, and WSL storage/context (#190, #269, #399, #744) (#1002)
* Fix virtiofs deleted-file revalidation, offline kiri domains, netns takeover, 429 manifest retries, and WSL storage/context (#190, #269, #399, #744)

* Ignore initial TLS ClientHello probe in 429 manifest retry unit test
2026-11-28 00:34:17 +01:00
Precious Okwu f04583af8e Engine & CLI: restore missing unpacked layers, fix macOS k8s idle CPU (#989), and add kiri engine (#983) (#996)
* Start: evict stale VmLink::layers cache and re-send missing unpacked layers

* Engine & CLI: fix macOS k8s idle CPU (#989) and add kiri engine commands (#983)
2026-11-27 08:23:21 +01:00
Precious Okwu a2aa118027 Fix CLI --help/-h and --version flags, Windows setup/import/build-with, and Docker config healing (#982, #984) 2026-11-26 14:00:17 +01:00
Precious Okwu e768fbcc53 macOS: spawn daemon directly when LaunchAgent kickstart leaves engine down (#602) 2026-11-26 14:00:17 +01:00
Karthik P 448cb87acd Fix registry: #981 keeps stopped machines out of container and system prune (#975) 2026-11-26 14:00:17 +01:00
Karthik P 0e05258455 Engine: docker container prune and system prune keep stopped machines (#975)
A `kiri machine` keeps its work in its container's writable layer, so a
routine `docker system prune` with the machine stopped deleted it and
everything in it. container_prune now leaves containers labelled
dev.kiri.machine out, as OrbStack's prunes leave its machines alone;
`kiri machine delete` and `docker rm machine-NAME` still remove one.
The window's prune goes through the same endpoint.

Unit test in daemon/ops.rs, e2e check machine-prune-keeps, listed in
tests/regressions.tsv; docs/features.md says prunes keep machines.
2026-11-26 14:00:17 +01:00
700badcf85 Guest kernel: enable NFSv3/v4 client for type=nfs volumes and dm-crypt/LUKS (#494) (#961)
Co-authored-by: meutex <meutex@users.noreply.github.com>
Co-authored-by: Marcin Uliasz <marcin.uliasz@hotmail.com>
2026-11-25 19:53:30 +01:00
Precious OkwuandMasih Moloodian ca443cb582 VM: swap on the data disk, 1 GiB by default, set in Settings -> Resources (#326) (#958)
Co-authored-by: Masih Moloodian <masihmoloodian@gmail.com>
2026-11-25 19:14:20 +01:00
Precious Okwu 4ddcde2b92 UI: show each volume's size asynchronously in Volumes view (#936) (#944) 2026-11-25 11:52:12 +01:00
Precious Okwu e5e0e32225 Networking: answer external AAAA with NODATA on IPv4-only networks and relay enterprise macOS VPNs (#932) (#943) 2026-11-25 11:44:21 +01:00
Precious Okwu 9144e3b94b WSL: bundle zoneinfo and self-repair empty /etc/localtime directories (#938) (#942) 2026-11-25 11:13:49 +01:00
Precious Okwu 326f6e72e6 Machine: use local image before pulling and allow exec on /tmp for --systemd (#935) (#941) 2026-11-25 11:04:54 +01:00
Precious Okwu cba7cd7027 Guest kernel: enable ext2/ext3 and FAT/vfat for loop-mounted disk images (#934) (#940) 2026-11-25 10:48:26 +01:00
Precious OkwuandJota Furtado bf8a917a80 macOS: mount ~/Kiri NFS share with nobrowse so Finder hides < sidebar entry (#929) (#939)
Co-authored-by: Jota Furtado <jotacfurtado@gmail.com>
2026-11-25 10:39:27 +01:00
Precious Okwu ca42f93dcf Mac: bind unprivileged low ports on loopback and add shared_nat toggle (#473, #383, #350) (#904) 2026-11-24 19:08:24 +01:00
Precious OkwuandSupersynergy 5206db5236 Guest kernel: persist virtiofs chown ownership and speed up warm bind reads (#382, #415) (#902)
Co-authored-by: Supersynergy <true@supersynergy.de>
2026-11-24 18:59:29 +01:00
Precious OkwuandElyter 48668ac10d Images: free unreferenced blobs on tag overwrite with race-free blob pinning (#864) (#901)
Co-authored-by: Elyter <eliottbreg@gmail.com>
2026-11-24 18:51:04 +01:00
Precious Okwu e22e7a10ec Builder: load images built by containerized Docker CLIs into Kiri's store (#734) (#899) 2026-11-24 18:06:40 +01:00
Precious Okwu 8ff5f3fc09 macOS: discover GPG SSH agent sockets and translate host SSH agent bind mounts (#763) (#898) 2026-11-24 17:32:53 +01:00
Precious Okwu 6f16118315 Kubernetes: support custom k3s --version, --k3s-arg, and ~/.kiri/k8s-manifests (#816) (#897) 2026-11-24 16:58:33 +01:00
Precious Okwu 50db05acda macOS: configure shell profiles once on first launch and support --no-profiles (#556) (#895) 2026-11-24 16:39:13 +01:00
Precious OkwuandBrad Hallett 2232b037f6 TLS: trust the host operating system's CA certificate store (#303) (#894)
Co-authored-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com>
2026-11-24 16:21:03 +01:00
Precious Okwu 4655a54229 WSL: surface emergency read-only VHDX guidance across Linux and Windows (#768) (#893) 2026-11-24 16:00:47 +01:00
Precious OkwuandArjan Steenbergen 4eba73b138 Engine: serialize containers.json through borrowed references without cloning specs (#783) (#890)
Co-authored-by: Arjan Steenbergen <arjan@sowmedia.nl>
2026-11-24 15:29:36 +01:00
6699331c05 API: include stopped containers in docker ps -l/-n and borrow network slices without cloning (#839, #784) (#886)
Co-authored-by: takealook97 <takealook97@naver.com>
Co-authored-by: Arjan Steenbergen <arjan@sowmedia.nl>
2026-11-24 15:08:16 +01:00
Precious Okwu f698ec4433 Kernel: check virtiofs owner mode bits directly to prevent non-root EACCES race (#796) (#884) 2026-11-24 14:02:08 +01:00
Precious Okwu 7b3be07ddc Compose: resolve WSL Linux and \wsl.localhost paths in Windows UI (#770) (#883) 2026-11-24 13:48:45 +01:00
Precious Okwuandtakealook97 740eed44f6 API: refuse invalid restart policies on create and update (#841) (#882)
Co-authored-by: takealook97 <takealook97@naver.com>
2026-11-24 13:41:04 +01:00
Precious OkwuandAndrea Basile 22a21cf663 CLI: bundle Docker Compose 5.8.0 (#575) (#881)
Co-authored-by: Andrea Basile <7715018+andreabasile@users.noreply.github.com>
2026-11-24 13:31:13 +01:00
Precious OkwuandJerald Maxfield e63e70103d Hardening: poison-tolerant Share locks, 0600 files, daemon connection cap and header timeout, and kiri-init panic hook (#207) (#880)
Co-authored-by: Jerald Maxfield <maxfie108@gmail.com>
2026-11-24 13:21:06 +01:00
9ba52d4b59 Images: load OCI image-layout archives and reuse verified blobs in store (#465) (#877)
Co-authored-by: Ayush7614 <ayush7614@users.noreply.github.com>
Co-authored-by: Arjan Steenbergen <arjan@sowmedia.nl>
2026-11-24 12:53:53 +01:00
Precious Okwu 9f34305421 Daemon: discard published ports on Linux host-network containers (#764) (#875) 2026-11-24 12:41:58 +01:00
Precious Okwu c69e905fc9 CLI & Daemon: fix WSL socket discovery, Linux daemon access, and socket errors (#836) (#873) 2026-11-24 12:13:12 +01:00
Precious Okwu ba435b9182 UI & Diagnostics: add Windows bind-watch toggle, fix narrow socket layout, and remove macOS copy on Linux/Windows (#487) (#871) 2026-11-24 11:16:44 +01:00
Precious OkwuandTusko 1df20acd83 Localization: Ukrainian Share button verb and wording fixes (#645) (#870)
Co-authored-by: Tusko <tusko@photoinside.me>
2026-11-24 11:05:04 +01:00
4d7d5778a4 HTTP: drain chunked trailers, handle Expect: 100-continue, and reject conflicting framing (#745, #134) (#868)
Co-authored-by: Chukwuebuka (Gaus Octavio) <56232734+Chukwuebuka-2003@users.noreply.github.com>
Co-authored-by: Ersin KOÇ <ersinkoc@gmail.com>
2026-11-24 10:48:08 +01:00
Precious OkwuandChukwuebuka 28b03aef29 Images: validate reference grammar on load and escape buildkitd.toml strings (#746) (#867)
Co-authored-by: Chukwuebuka (Gaus Octavio) <56232734+Chukwuebuka-2003@users.noreply.github.com>
2026-11-24 10:28:23 +01:00
Precious OkwuandRandy Fay 8dd7b2970c Volumes: refuse volume rm --force when a container still uses the volume (#773) (#866)
Co-authored-by: Randy Fay <randy@randyfay.com>
2026-11-24 10:15:55 +01:00