11 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 b66d3e3ad9 Kiri Forge: Kiri's own build engine, on by default (#1039) 2026-11-29 20:51:21 +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 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 OkwuandShuvro Roy 96dded8233 Mac: support configuring and growing the VM data disk online (#384) (#824)
Co-authored-by: Shuvro Roy <shuvro.nsu.cse@gmail.com>
2026-11-24 01:50:23 +01:00
Precious Okwu 297346c316 Build: dev builds take seconds — an incremental profile on every core for app-dev, linux-dev and windows-dev (#536) 2026-11-19 05:03:33 +01:00
Precious OkwuandMarcus Neves 193dfd7e18 Engine: always and unless-stopped containers come back after the VM crashes (#267)
Co-authored-by: Marcus Neves <2423436+mneves75@users.noreply.github.com>
2026-11-15 14:19:10 +01:00
Marcus Neves f973293e51 Guest kernel: backport the upstream GRO frag_list fix behind the skb_segment BUG (#52)
* fix(kernel): prevent invalid GRO frag lists during forwarding

Backport upstream 679f6929a66d with its original authorship and Link. Linux 6.18.58 skb_segment BUGs when GRO chains a linear head larger than gso_size; reject that merge instead of masking the assertion or disabling GRO.

Verified: DOCKER_CONTEXT=orbstack cargo xtask kernel; inspected the built GRO guard, intact BUG_ON, and .config virtio-net/bridge/veth settings.
Signed-off-by: mneves75 <2423436+mneves75@users.noreply.github.com>

* docs: list the guest kernel's GRO patch

Signed-off-by: mneves75 <2423436+mneves75@users.noreply.github.com>

* fix(kernel): order the GRO backport after the FUSE patch

Rename the unchanged upstream GRO patch to 0004 and document the FUSE patch added in #76. Verified byte-for-byte patch equality, unique patch numbering, shell syntax and git diff --check.

---------

Signed-off-by: mneves75 <2423436+mneves75@users.noreply.github.com>
2026-11-10 16:59:22 +01:00
Precious Okwu a705eb16a6 Docs: Linux engine start, the docker.sock link and IPv6 networks (#87) 2026-11-09 04:45:50 +01:00
Precious Okwu 6327712d3c Mac: the Finder mount never covers your files or another mount at ~/Kiri (#75) 2026-11-09 04:28:33 +01:00
Precious Okwu 15c6bd7a48 Kiri 0.1.14 2026-11-02 18:32:31 +01:00