Repository navigation
Description
lane: reliability
state: needs-device
owner: unassigned
unit: delivered in #6382 (merged)
blocked-by: #5981
clears-when: Windows updater install drill passes on the acceptance VM
next: Run the Windows updater install drill on the acceptance VM (#5981).
updated: 2026-11-12
Alerts
| Alert | Severity | Advisory | Affected |
|---|---|---|---|
| #74 | critical | GHSA-m665-v7pm-7grj, "Zip Cloaking" dual-header parser differential leading to file overwrite | zip <= 9.0.4 |
| #75 | high | unbounded symlink-target handling during extraction | zip < 9.0.0 |
| #76 | medium | AES entry HMAC bypass on premature EOF | zip < 9.0.0 |
src-tauri/Cargo.lock resolves zip 4.6.1. Its only dependent is tauri-plugin-updater 2.10.1, which uses it as an optional, cfg(target_os = "windows") dependency.
Upgrade path
Every tauri-plugin-updater release up to 2.14.0 requires zip ^4. 2.14.1 (2026-10-28) is the first to require zip ^9, which resolves to ≥ 9.0.5. It also requires tauri ^2.12, while Cave pins tauri = "2.11.2". Clearing these alerts by upgrade therefore means a tauri 2.11 → 2.12+ platform upgrade: the Rust crates plus @tauri-apps/api, @tauri-apps/cli and @tauri-apps/plugin-*.
Reachability proof (tauri-plugin-updater 2.10.1 source)
Update::download(src/updater.rs:652-714) reads the full body, then callsverify_signature(&buffer, &self.signature, &self.config.pubkey)?(line 712). This is a minisign check against the app's built-in public key, and it fails closed with?.- Cave's frontend calls
update.download()and thenupdate.install()(src/lib/native-update-preparation.ts:37,src/components/update-available.tsx:137). It never callsdownloadAndInstallor passes its own bytes. - The
downloadcommand (src/commands.rs:98-137) stores the verified buffer as aDownloadedBytesresource. Theinstallcommand (src/commands.rs:141-151) accepts only aDownloadedBytesresource ID. The webview cannot create a resource of that type with its own bytes. extract_zip(src/updater.rs:899-904) is the onlyzip::ZipArchiveuse, and it is reached only throughinstall_inner→extracton Windows.
Conclusion: zip only parses archives signed with the Tauri updater private key. Anyone who can produce such an archive can already ship arbitrary code through the updater, so the zip parser bugs add no capability. The residual risk is a future Cave change that installs unverified bytes.
Options (needs the owner's decision)
- A. Dismiss fix(sidebar): SessionRow→SessionItem, relTime tooltip, unassigned dedup, duplicate CSS #74–chore(dev): add pnpm dev:app for native Tauri dev mode #76 as "vulnerable code not reachable", citing this issue. Add a test that pins Cave to
download()theninstall()with no raw bytes, so the proof can't silently rot. - B. Upgrade to
tauri2.12+ andtauri-plugin-updater2.14.1, and verify the updater on an RC. The release provenance gate only builds signed candidates frommain, so an RC can only run after the upgrade merges. The goal's "RC before merge" criterion cannot hold as written; a post-merge RC must gate the next stable release instead.
Owner: Claude Code session, security-backlog goal
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
BunsDev commentedon Nov 2, 2026
Owner decision (2026-11-02): upgrade, rather than dismissing the alerts. Work is in
deps/issue-6377-tauri-updater-zip, worktree.worktrees/issue-6377-tauri-updater, starting from95f8070ed.Format the install teardown test
BunsDev commentedon Nov 4, 2026
Project alignment: parallel security lane with a release gate
The owner's 2026-11-02 upgrade decision supersedes the undecided-options framing in the original body. Continue PR #6382 in the recorded deps/issue-6377-tauri-updater-zip unit; do not revisit dismissal or create a second upgrade. This is a separate security outcome alongside #6359, not a reason to expand that goal into a platform release.
Primary delivery gate: exact-head hosted qualification, especially Windows compilation and updater teardown/recovery. Next step: the existing security owner reconciles the upgrade with baseline repair #6383/#6384, then qualifies the final head through the protected path. Preserve PR #6382's explicit pre-stable-release requirement for a signed candidate and end-to-end macOS/Windows updater installation. Source checks or a merge do not establish that native acceptance; no release/tag authority is added here.
Acting agent: Codex, GitHub planning maintenance requested by Val. This is a recorded-only continuation recommendation, not an execution claim or owner acknowledgement. Existing owners, human decisions, original acceptance criteria and worktrees remain authoritative. GitHub issue/PR inventory and paginated comments were inspected; private Board execution liveness is unknown. Project membership was read, but the returned item payload exposes Title only, so current Status is not asserted. Use Todo while waiting and Started only during confirmed active execution.
Upgrade Tauri to 2.12 and the updater to 2.14.1 to clear the zip alerts
BunsDev commentedon Nov 8, 2026
Delivered through protected PR #6382: exact head
9d5347989e18523beba20d17c79428a04c92888f, squash4dcdf118465e5013532e45557bde05c3afd452f8. This issue stays open for the signed RC below.Checks on that head
Frontend buildpassed on CI 42468428308, attempt 3, a whole-workflow run.iOS buildpassed in that same attempt, andtranscriptpassed on attempt 4 of iOS transcript regression.Windows startup native testspassed on run 42468428340.First failures, kept on record. Earlier attempts failed during GitHub's "Increase in timeouts for some unauthenticated users" incident on 2026-11-08: 504 and connection errors downloading the WebRTC framework for both iOS jobs, 504s on the Research tarball in E2E shard 4, whose Research Desk tests then failed until the job was cancelled at its 60-minute limit, and
Frontend buildthen failed on those prerequisites. A Copilot partial re-run passed shard 4 andiOS build, but the final gate correctly refused the carried-forward evidence.Analyze (javascript-typescript)failed with a 504 downloading the CodeQL bundle, and that run cannot be retried. It is advisory, so it is not evidence of a clean scan on this head. The next CodeQL run onmainis what covers it.Owner decision (2026-11-08): merge once green, with the RC after. The goal's "RC before merge" order is not possible, because
release-candidate.ymlonly accepts a signed candidate already onmain.Still required before the next stable release: an owner-signed RC tag, and an end-to-end updater install on macOS and Windows with signature verification passing. Merged source and hosted checks do not establish this. It is what closes this issue.
BunsDev commentedon Nov 8, 2026
Correction to my delivery comment above, and to PR #6382's "RC before the next stable release" section. A signed RC tag cannot show an updater install end to end.
release-candidate.ymlhas two jobs, provenance andfull-validation. It builds no installer and publishes no updater manifest.release.ymlexcludes-rctags (!v*.*.*-*), so only a final tag produces signed installers andlatest.json.An RC is still required to promote a stable release, but it gives validation evidence only.
What is actually unproven. The new client (
tauri-plugin-updater2.14.1,minisign-verify0.3,zip9.2.2) has not yet installed a real update. v0.5.20 installs still run the old client, so updating to the next stable exercises only the old client against new artifacts. The new client first runs when that next stable updates to the one after it. A client defect would therefore show up only after it had shipped, and could leave those installs needing a manual reinstall.Status at
4dcdf1184: 0 open code-scanning alerts, 0 open Dependabot alerts (#74, #75 and #76 fixed on merge), main CI and all five CodeQL analyses green. This issue stays open until the owner chooses how to prove the install.BunsDev commentedon Nov 8, 2026
Claim: local macOS updater install drill. Owner chose this on 2026-11-08 as the proof for the new updater client. Acting session: Claude Code for the owner, on the security goal. No familiar identity is asserted.
Scope: two builds of
4dcdf1184at versions 0.5.90 and 0.5.91, in a disposable clone outside.worktrees, so no worktree is registered. The updater tarball is made and signed with the same commandsscripts/release.shuses, but with a throwaway key and a loopbacklatest.json. A tampered-signature case runs first, then the real update.Isolation: bundle identifier
ai.opencoven.cave.updaterdrill, a temporaryHOME, and port 3377. Theai.opencoven.caveLaunchAgent and Tailscale serve paths are gated on the exact production identifier, so the drill cannot reach them. No production key, tag or release is involved, and nothing from the clone is pushed.BunsDev commentedon Nov 8, 2026
macOS updater install drill: passed. Run 2026-11-08 on macOS arm64, from
4dcdf118465e5013532e45557bde05c3afd452f8, by the owner's choice recorded above. It covers the new client (tauri-plugin-updater2.14.1,minisign-verify0.3.0,zip9.2.2). The server log shows the client's user agent astauri-plugin-updater/2.14.1in every case.The signature was created with a different key than the one provided; bundle stayed 0.5.90The signature verification failed; bundle stayed 0.5.90After the update: the running process's executable inode matched the new bundle's.
diff -rqagainst the 0.5.91 build found 0 differences,codesign --verify --deep --strictpassed, there were no._*entries (the v0.0.167 "app is damaged" regression), and the new client's next check offered no further update.Signature compatibility, using the same decode and verify calls as the plugin:
darwin-aarch64artifact, production signature and pinned keyWhere this differs from a production update
latest.jsonover HTTP (dangerousInsecureTransportProtocol), not GitHub's HTTPS redirect. Verifying the real production signature, in the table above, covers only the key and signature, not the transport.COVEN_CAVE_DEV_INIT_SCRIPThook was enabled in release builds so a script could click the buttons, andscripts/sidecar-bundle.shwas changed to copypatches/, without which the bundle does not build at this commit.Isolation: the installed app's PIDs (772, 1493, 5210), its LaunchAgent, port 3020 and its plist hash were identical before and after. The clone, keys, temporary home and the
~/Libraryfolders named for the drill's bundle ID are removed.Still open: a Windows install drill on the acceptance VM (#5981), which is the remaining part of this issue's macOS and Windows requirement. Hosted Windows native tests passed on the #6382 head.
BunsDev commentedon Nov 8, 2026
Owner decision, 2026-11-08 (via Claude Code session): the local macOS drill recorded above replaces the security goal's criterion that an RC install an update before the updater change merges.
Why: #6382 had already merged on the owner's instruction, and RC runs build no installer or
latest.json, so that criterion can no longer be met as written.The limits in the drill receipt still apply: ad-hoc signing, a throwaway key, loopback HTTP, macOS arm64 only. The first production-signed run of the new client is still the next stable release updating to the one after it.
Remaining on this issue: a Windows install on the acceptance VM (#5981).
Copy patches into the sidecar staging install
BunsDev commentedon Nov 12, 2026
Archived goals block from 5 November 2026, replaced by the compact work block at the top of this issue
Current goals — 5 November 2026
Plan: Smaller Cave MVP #6396 and the 4 November path-forward Revision 3, reconciled with newer repository/owner evidence. This block supersedes earlier planning checkpoints and resumption prompts where stale; original scope, acceptance criteria, human decisions and ownership below remain in force. #6396 is not a blanket start dependency. GitHub Issues remain the queue; historical Bead wording is not current workflow.
Routing: Keep; upgrade chosen. Lane: reliability.
Responsible owner: Existing security owner; #6382; GitHub: unassigned.
Evidence to resume from: Latest issue checkpoint.
Next step: Continue the approved upgrade, exact-head Windows/updater qualification and signed-candidate macOS/Windows install before stable release; do not revert to alert dismissal.
Long-running goal prompt
Follow-up prompt
Maintenance scope: Codex for Val, issue-goal update only; no familiar identity, owner takeover or runtime claim. Preserve original priorities, dependencies and current authorizations. Private execution liveness and Project fields were not inspected or changed.
chore(release): stamp v0.5.21
BunsDev commentedon Nov 16, 2026
Long-running goal prompt
Work toward completing #6377. Read AGENTS.md, work-continuity, the complete original criteria and newest owner checkpoint first; refresh current main, ownership, linked PR heads and blockers. Finish the remaining Windows updater-install acceptance of the Tauri/updater upgrade already delivered in #6382. Preserve the signature-before-extraction contract and the accepted macOS drill’s explicit ad-hoc-signing/throwaway-key/loopback limits; the owner already replaced the impossible pre-merge RC criterion. On the authorized #5981 Windows environment, prove wrong-key/tampered refusal and a valid install/relaunch with exact artifacts and retained runtime/recovery state. Do not repeat the upgrade, dismiss alerts automatically or claim macOS tarball evidence covers Windows zip extraction. Preserve first failures, retries, skips and unsupported rows. Use existing scope-specific authority; close only when every original criterion is proven or explicitly dispositioned by its responsible owner.
Follow-up prompt
Continue #6377 from the latest verified checkpoint without restarting completed work. Refresh #5981’s actual acceptance VM and operator access, nominate the current signed candidate tuple, and run the remaining Windows updater drill through the existing owner. Record signature, extraction, install/restart and old-client compatibility boundaries. If the Windows environment is unavailable, leave that exact blocker rather than substituting host tests or another macOS drill. Record the exact source/artifact, new evidence, remaining gate, responsible actor and one imperative next step on this issue.
Evidence to refresh: Issue and latest checkpoint.
Planning scope: This is a suggested continuation of the canonical issue, not an execution claim or new approval. Existing owners, human decisions and acceptance criteria remain authoritative. GitHub issues, paginated comments/relations, open PRs and Cave Project 9 were checked against main
2d6fda4ed0c5; private execution liveness remains unverified.