* CI & release: enforce executable regression checks, PR gates, Windows unit tests, and Mac release gate
* Compose: keep empty environment variables distinct instead of gluing onto preceding entry
- Forked VM host-relay worker (`kiri-relay`, `#1085`): move `:1026` (`host.docker.internal` / loopback) and `:1038` (host egress) TCP-to-vsock relays out of `agent::serve_loop` into a dedicated single-threaded child process (`VmRelays`), preserving `kiri-init` PID 1's single-threaded `clone3` invariant while allowing kernel-originated `output`-redirected mounts (`nfs`, `nfs4`, `cifs`) to complete over vsock immediately.
- Deferred network-volume mounts (`volmount::prepare_or_ensure`): keep upfront path, allowlist, and hostname validation synchronous while deferring blocking `mount(2)` calls for network filesystems into `container_child` before `unshare(CLONE_NEWNS)` under `/run/kiri/volmount.lock` so offline NAS endpoints never stall `agent::serve_loop` or concurrent container starts.
- Narrower non-tunnel LAN subnet exemptions (`parse_macos_egress_plan` & `EgressRule`): emit `!cidr` bypass prefixes for unscoped non-tunnel unicast LAN routes (such as `10.0.1.0/24` on `en0` inside Tailscale's `10.0.0.0/12` on `utun4`) when `shared_nat` is active without a global security `NetworkExtension`, sorted longest-prefix-first before broader `redirect to :1038` rules.
Fixes#1085
- Drop unstarted `exec` instances on container stop and populate `ExecIDs` (`#1104`): remove unstarted exec records (`!running && exit_code.is_none()`) whenever their container stops or exits so `POST /exec/{id}/start` and `GET /exec/{id}/json` return `404 No such exec instance` both while stopped and after `docker start` (while keeping finished execs inspectable until container removal), populate `ExecIDs` in `GET /containers/{id}/json`, and ensure `exec_capture` and builder exec helpers always clean up records on `exec_start` errors.
- Remove k3s anonymous volumes on `kiri k8s delete` (`#1103`): pass `?force=1&v=1` when deleting `kiri-k8s` across macOS, Linux, and Windows so the three anonymous volumes declared by `rancher/k3s` (`/var/lib/cni`, `/var/lib/kubelet`, `/var/log`) are deleted alongside the container while keeping the named `kiri-k8s` volume separate until explicit cluster deletion.
- Preserve existing `/dev/loopNpM` node owner, mode, and inode (`#1102`): leave existing `S_IFBLK` nodes untouched in `devsync::sync_dev_dir` when `st_rdev` matches `makedev(major, minor)` so permissions applied by `systemd-udevd` (`root:disk 0660`) or `chown`/`chmod` survive subsequent unrelated loop uevents.
Fixes#1104Fixes#1103Fixes#1102
- Native `nf_tables` `filter` rule synchronisation without `/sbin/iptables` (`#1100`, `#761`): synchronise Kiri's `DOCKER-USER`, `FORWARD`, and `INPUT` DNS port 53 rules directly over `NETLINK_NETFILTER` (`NFPROTO_IPV4` and `NFPROTO_IPV6`) whenever no `iptables` binary is present (such as inside `kiri-linux` `alpine-minirootfs` on Windows WSL 2 alongside Docker Desktop's `ip filter` `FORWARD DROP` rules), tagging rules with `NFTNL_UDATA_RULE_COMMENT` (`comment "kiri"`), prepending them at the head of the target chain, and removing them by `NFTA_RULE_HANDLE` on `Why::Stop` or chain migration.
- Windows Unicode canonical and watched path boundary safety (`#1087`, `#1088`): replace unchecked byte slices in `compose::plain_path`, `compose::wsl_unc`, and `kiri-win` `watch::collapse_specs` with `str::get(...)` so multi-byte UTF-8 characters after `C:\`, `\\?\`, or watched parent folder prefixes never panic.
Fixes#1100Fixes#761Fixes#1087Closes#1088
Co-authored-by: zhang.kom <zhang.kom@gmail.com>
- Close-on-exec & worker descriptor hygiene (`#1089`): set `FD_CLOEXEC` immediately on all bound TCP/UDP port listeners (`ports.rs`), `Virtualization.framework` vsock descriptors (`F_DUPFD_CLOEXEC` in `apple.rs`), and received `SCM_RIGHTS` descriptors, and mark descriptors `>= 3` `FD_CLOEXEC` in `pre_exec` before spawning `kiri-forge` so child processes never inherit published host ports across container recreations.
- Image `ENTRYPOINT [""]` parity (`#1091`): merge image `Entrypoint` and `Cmd` before clearing `[""]` in `api::command()`, matching Docker's `mergeAndVerifyConfig` so images built with `ENTRYPOINT [""]` run their `CMD`.
- Length-prefixed PAX xattr unpacking (`#1068`): capture raw PAX `'x'` headers via `GoNumbers::with_pax` and parse `SCHILY.xattr.*` records by their decimal byte-length prefix while scrubbing interior `0x0a` bytes inside non-path values handed to `tar-rs`, allowing binary POSIX ACLs (`gid 10` = `0x0a`) to unpack cleanly and preventing embedded newline `path=` spoofing.
- macOS `scutil --dns` supplemental VPN resolvers (`#1067`): parse and cache `Supplemental` domain resolvers from `scutil --dns` (invalidated immediately on `PF_ROUTE` changes) and merge them by longest domain suffix with `/etc/resolver/*` so VPN split-DNS names resolve even when a security NetworkExtension enables `prefer_relay`.
Fixes#1089Fixes#1068Fixes#1067Closes#1091
Co-authored-by: ryota saiga <24691647+RSaiga@users.noreply.github.com>
- 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#1081Fixes#1078Closes#1062Closes#1033Closes#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>
- Accept legacy uppercase RootFS and omitted type on docker load, reuse verified local store layers on 0-byte placeholders (#1064), and keep archive test fixture folders colon-free on Windows (#1035).
- Enable CONFIG_BLK_DEV_WRITE_MOUNTED=y (#1056) and CONFIG_CRYPTO_MD5=y (#1074) in guest/kernel/kiri.config.
- Cache Stat-bound (gzip_digest, gzip_size) stamps for plain-tar layers so Client::push checks HEAD before compressing unchanged layers (#1070).
- Sync /dev/loopN and /dev/loopNpM partition block nodes dynamically on kernel uevents in privileged Kiri machines while keeping regular privileged containers isolated (#977).
Fixes#1064Fixes#1056Fixes#1074Fixes#1070Fixes#977Closes#1035Closes#1075Closes#1094
Co-authored-by: DeryFerd <deryferdikao125@gmail.com>
Co-authored-by: fudio101 <38380477+fudio101@users.noreply.github.com>
Co-authored-by: Marcin Uliasz <marcin.uliasz@pm.me>
- Write generated per-container /etc files atomically via exclusive create_new temporary files without following symlinks (#1034).
- Honour configured proxy settings and Windows WSL loopback proxy relays across Forge, updater, tools, scanner, and buildfetch HTTP clients (#1086).
- Discover docker-buildx across cliPluginsExtraDirs, system plugin directories, and bundled Kiri cli-plugins folders on BuildKit fallback builds (#1065).
- Replace two-thread dup/copy host-bound, egress, and SSH agent relays with a non-blocking poll() state machine and close VZVirtioSocketConnection on drop (#1077).
Fixes#1086Fixes#1065Fixes#1077Closes#1034
Co-authored-by: DeryFerd <deryferdikao125@gmail.com>
- Normalise legacy index.docker.io image references to docker.io in Reference::parse (#1018).
- Match docker images --filter reference= patterns with Go path.Match semantics (#1019).
- Allow disconnecting containers from the none network so --network none containers can join bridge or custom networks (#1084).
- Default HostConfig.IpcMode to "private", persist explicit --ipc and --uts modes in docker inspect, and enforce IPC/UTS sharing in kiri-init (#1066).
- Cap healthcheck start_interval waits by remaining start_period during container startup (#1052).
Fixes#1084Fixes#1066Fixes#1052Closes#1018Closes#1019
Co-authored-by: Can Şentay <140180359+cansentay@users.noreply.github.com>
The window never runs more than one build-history query at a time, on macOS, Linux and Windows. A request made during a query runs once after it. The polled list is cut off after 15 s and log reads after 120 s, and the process tree is killed. buildx ls runs with --timeout 5s, with a fallback for buildx older than 0.32.0. Builders that are two names for one node are asked once, and the buildx version is read at most every 5 minutes.
Fixes#1016
Co-authored-by: Mahesh Kamble <themaheshkamble@gmail.com>
A Compose view group whose containers carry only com.docker.compose.project (the Supabase CLI makes these) showed a false "can't find this project's compose file" warning and a phantom "Not created" row, and its group buttons did nothing, because docker compose -p skips containers without the service label.
Such a project is now marked as made without a compose file. Its Start, Stop, Restart and Remove act on the member containers, Logs come from the member containers, and "Removed" is shown only once they are gone. A member without a service label is no longer counted as a service. Projects with a compose file are unchanged.
Fixes#1031
Intermediate non-exported RUN steps adopted in ephemeral mode live in the guest layer directory without writing a blob in the host store. When a later host-side step (COPY, ADD, WORKDIR, or COPY --from) builds a tree view outside mount_view, layer_file, read_layer, and open_layer now stream the adopted layer tar from kiri-init once into a build-scoped 0700 temporary directory and remove it when Ports drops, while advertising ephemeral_layer_files to kiri-forge worker.
Three rows in tests/e2e.sh failed on main on a Linux host with AppArmor. No engine code changes.
cap-add-sys-admin and systempaths-bwrap now follow the default AppArmor profile: where it is enforced, a mount with --cap-add SYS_ADMIN is denied by default and works with --security-opt apparmor=unconfined, as on Docker. systempaths-bwrap checks bwrap's own output only. dns-user-net-three-refused-servfail-at-once no longer shares an ICMP rate limit with the rows before it; its 2-second limit is unchanged.
A container that carries com.docker.compose.project but no com.docker.compose.service label (the Supabase CLI makes these) was shown with the local address undefined.<project>, and with an empty service label it lost its address. The window and the menu now use <service>.<project> only when both labels are set, and the container's name otherwise, which is the address the router answers.
With HTTPS for local addresses on, a name the TLS side refuses (an underscore, or a label that starts or ends with a hyphen) is shown as http://.
Part of #1031: the compose-file warning and the extra "Not created" row are a separate change.
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
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.
The update feed may carry an announcement for a big release: a style (narrow or wide) and a short list of parts (image, title, text, figures, command, list, note, button) that the window draws itself. No page is loaded. A picture is fetched by the app from Kiri's download address only, without following redirects, checked against its SHA-256 and its kind, and shown as a data: picture.
A wide announcement opens once when a release is offered, and the announcement for the running version shows once after updating. Read more and button links open only runkiri.com pages, Kiri's releases on GitHub and Kiri Forge's repository.
Also: a Featured section and section icons in the notes list, Read more on GitHub, What's new on the Kiri Forge update card opening the Forge release on GitHub when its feed has no notes, and KIRI_RELEASE_ANNOUNCE in the release tool.
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.
* builds: deduplicate list() across builder aliases preferring primary builder (#1006)
* ui: preserve scroll positions and text selection across periodic re-renders (#1007)
* ui: reposition open SearchSelect popup when morph shifts its anchor
* 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
- lang/hy.json & lang/az.json: add Armenian (Հայերեն, #386) and Azerbaijani
(Azərbaycanca, #401) at 100% key parity (2,038 keys across 41 translation
files), tightening verbose Azerbaijani labels so narrow cards and tabs fit.
- lang.rs, langstep.js, index.html, setup.html: register hy (hy, hy-AM, hy_AM)
and az (az, az-AZ, az-Latn-AZ, az_AZ), Armenian font fallbacks (Noto Sans
Armenian, Mshtakan, Sylfaen), and Latin search aliases (azeri, azerbaycanca,
hayeren).
- Settings → About: add Community row (Discord + @runkiri on X) with .soc-i
icons and idiomatic 'Community' translations across all 41 language files.
- Domains: return empty string from localUrl() when the active router reports
running: false or serving: false so dead .kiri.local/.kiri.localhost links
are hidden while published host ports remain clickable.
Co-authored-by: Shahen Hovhannisyan <shahen.hovhannisyan.94@gmail.com>
Co-authored-by: Míng hàn <mahirmehtizade@outlook.com>
Kiri's window, menus and Windows setup now come in Uzbek (Oʻzbekcha, in
standard official Uzbek Latin) and Nepali (नेपाली), bringing Kiri to 40
languages (39 translation files, 2,037 keys each).
- lang/uz.json: all 2,037 keys in official Uzbek Latin (Oʻ/oʻ, Gʻ/gʻ with
U+02BB, tutuq belgisi U+02BC, Sh/sh, Ch/ch).
- lang/ne.json: all 2,037 keys in everyday Nepali developer register,
with Noto Sans Devanagari first in index.html and Nirmala UI in setup.html.
- lang.rs & langstep.js: uz (uz, uz-UZ, uz-Latn-UZ, uz_UZ) and ne (ne,
ne-NP, ne_NP) resolution, native names, greetings and Uzbek search aliases.
- UI tests & README: updated for 40 languages.
Co-authored-by: Behruz Bahodirov <bbahodirov.dev@gmail.com>
Co-authored-by: sundarshahi <shahithakurisundar@gmail.com>
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.