diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 78c59618501..4ce5521e812 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -683,7 +683,7 @@ jobs: - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: 24.14.1 + node-version: 24.22.1 # Disable dependency caching: a writable cache in this release workflow # (contents: read, feeds a signed installer) is a poisoning vector. pnpm # install runs uncached below. diff --git a/.github/workflows/upstream-sync-rehearsal.yml b/.github/workflows/upstream-sync-rehearsal.yml index 4eef688fa04..c99a1e198f2 100644 --- a/.github/workflows/upstream-sync-rehearsal.yml +++ b/.github/workflows/upstream-sync-rehearsal.yml @@ -65,7 +65,7 @@ jobs: - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 if: github.repository != 'Kiingo/buzz' && steps.rehearsal.outcome == 'success' with: - node-version: 24.14.1 + node-version: 24.22.1 cache: pnpm - name: Install exact dependencies for focused desktop contracts diff --git a/.github/workflows/windows-canary.yml b/.github/workflows/windows-canary.yml index 67c7fdd890f..39af099d234 100644 --- a/.github/workflows/windows-canary.yml +++ b/.github/workflows/windows-canary.yml @@ -48,7 +48,7 @@ jobs: - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: 24.14.1 + node-version: 24.22.1 package-manager-cache: false - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0 diff --git a/bin/.node-24.15.0.pkg b/bin/.node-24.22.1.pkg similarity index 100% rename from bin/.node-24.15.0.pkg rename to bin/.node-24.22.1.pkg diff --git a/bin/corepack b/bin/corepack index 4df063726ce..4480ff1e878 120000 --- a/bin/corepack +++ b/bin/corepack @@ -1 +1 @@ -.node-24.15.0.pkg \ No newline at end of file +.node-24.22.1.pkg \ No newline at end of file diff --git a/bin/node b/bin/node index 4df063726ce..4480ff1e878 120000 --- a/bin/node +++ b/bin/node @@ -1 +1 @@ -.node-24.15.0.pkg \ No newline at end of file +.node-24.22.1.pkg \ No newline at end of file diff --git a/bin/npm b/bin/npm index 4df063726ce..4480ff1e878 120000 --- a/bin/npm +++ b/bin/npm @@ -1 +1 @@ -.node-24.15.0.pkg \ No newline at end of file +.node-24.22.1.pkg \ No newline at end of file diff --git a/bin/npx b/bin/npx index 4df063726ce..4480ff1e878 120000 --- a/bin/npx +++ b/bin/npx @@ -1 +1 @@ -.node-24.15.0.pkg \ No newline at end of file +.node-24.22.1.pkg \ No newline at end of file diff --git a/crates/buzz-feature-flags/tests/fixtures/relay-feature-selection/Cargo.lock b/crates/buzz-feature-flags/tests/fixtures/relay-feature-selection/Cargo.lock index 6f0ec9a2bb6..0d84f772537 100644 --- a/crates/buzz-feature-flags/tests/fixtures/relay-feature-selection/Cargo.lock +++ b/crates/buzz-feature-flags/tests/fixtures/relay-feature-selection/Cargo.lock @@ -216,6 +216,7 @@ version = "0.1.0" dependencies = [ "base64 0.22.1", "chrono", + "ed25519-dalek", "hex", "hmac 0.13.0", "nostr", @@ -457,6 +458,33 @@ dependencies = [ "cmov", ] +[[package]] +name = "curve25519-dalek" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5eed333089e2e1c1ac8c6c0398e5e2497b4c9926ca6d0365ed1e099afa5bc23" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "curve25519-dalek-derive", + "digest 0.11.3", + "fiat-crypto", + "rustc_version", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "darling" version = "0.24.1" @@ -583,6 +611,28 @@ version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" +[[package]] +name = "ed25519" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29fcf32e6c73d1079f83ab4d782de2d81620346a5f38c6237a86a22f8368980a" +dependencies = [ + "signature", +] + +[[package]] +name = "ed25519-dalek" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ebaa1a2bf1290ab3bfe5a7b771d050ebffab2711c19a81691c683a5144a25de" +dependencies = [ + "curve25519-dalek", + "ed25519", + "sha2 0.11.0", + "subtle", + "zeroize", +] + [[package]] name = "either" version = "1.18.0" @@ -612,6 +662,12 @@ dependencies = [ "tokio", ] +[[package]] +name = "fiat-crypto" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64cd1e32ddd350061ae6edb1b082d7c54915b5c672c389143b9a63403a109f24" + [[package]] name = "find-msvc-tools" version = "0.1.13" @@ -1843,6 +1899,15 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + [[package]] name = "rustls" version = "0.23.45" @@ -1880,9 +1945,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.103.15" +version = "0.103.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" +checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281" dependencies = [ "ring", "rustls-pki-types", @@ -2119,6 +2184,12 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" +[[package]] +name = "signature" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28d567dcbaf0049cb8ac2608a76cd95ff9e4412e1899d389ee400918ca7537f5" + [[package]] name = "simd-adler32" version = "0.3.10" diff --git a/desktop/src-tauri/src/commands/agent_discovery/managed_node.rs b/desktop/src-tauri/src/commands/agent_discovery/managed_node.rs index fbfb068c0e5..80daa1502fd 100644 --- a/desktop/src-tauri/src/commands/agent_discovery/managed_node.rs +++ b/desktop/src-tauri/src/commands/agent_discovery/managed_node.rs @@ -3,9 +3,10 @@ use std::sync::{Mutex, OnceLock}; use std::time::Duration; use std::{io::Read, io::Write}; -use crate::managed_agents::{is_npm_global_install, InstallStepResult}; +use crate::managed_agents::{ + is_npm_global_install, InstallStepResult, BUZZ_MANAGED_NODE_VERSION as MANAGED_NODE_VERSION, +}; -const MANAGED_NODE_VERSION: &str = "v24.18.0"; const MANAGED_NODE_MAX_BYTES: u64 = 90 * 1024 * 1024; #[derive(Debug, Clone, Copy)] @@ -18,43 +19,43 @@ struct ManagedNodeArtifact { #[cfg(all(target_os = "macos", target_arch = "aarch64"))] const MANAGED_NODE_ARTIFACT: Option = Some(ManagedNodeArtifact { platform: "darwin-arm64", - filename: "node-v24.18.0-darwin-arm64.tar.gz", - sha256: "e1a97e14c99c803e96c7339403282ea05a499c32f8d83defe9ef5ec66f979ed1", + filename: "node-v24.22.1-darwin-arm64.tar.gz", + sha256: "89c682593d76cd44233fa53b1563264e7de9cbb189cad169135c5b4fadfbc0a7", }); #[cfg(all(target_os = "macos", target_arch = "x86_64"))] const MANAGED_NODE_ARTIFACT: Option = Some(ManagedNodeArtifact { platform: "darwin-x64", - filename: "node-v24.18.0-darwin-x64.tar.gz", - sha256: "dfd0dbd3e721503434df7b7205e719f61b3a3a31b2bcf9729b8b91fea240f080", + filename: "node-v24.22.1-darwin-x64.tar.gz", + sha256: "d132557e7ee2b85af08b0c8c34338e65c6430f2238d01f727728ef42dc83b035", }); #[cfg(all(target_os = "linux", target_arch = "x86_64"))] const MANAGED_NODE_ARTIFACT: Option = Some(ManagedNodeArtifact { platform: "linux-x64", - filename: "node-v24.18.0-linux-x64.tar.gz", - sha256: "783130984963db7ba9cbd01089eaf2c2efb055c7c1693c943174b967b3050cb8", + filename: "node-v24.22.1-linux-x64.tar.gz", + sha256: "eb6728e77c576a35162c122c45ccadf224d89ff00abc8dae46cc2897c6002d7c", }); #[cfg(all(target_os = "linux", target_arch = "aarch64"))] const MANAGED_NODE_ARTIFACT: Option = Some(ManagedNodeArtifact { platform: "linux-arm64", - filename: "node-v24.18.0-linux-arm64.tar.gz", - sha256: "6b4484c2190274175df9aa8f28e2d758a819cb1c1fe6ab481e2f95b463ab8508", + filename: "node-v24.22.1-linux-arm64.tar.gz", + sha256: "33c37be234ba8bee041961047b19160f4d7d0f164e8e246f78bdd10feff148b3", }); #[cfg(all(target_os = "windows", target_arch = "x86_64"))] const MANAGED_NODE_ARTIFACT: Option = Some(ManagedNodeArtifact { platform: "win-x64", - filename: "node-v24.18.0-win-x64.zip", - sha256: "0ae68406b42d7725661da979b1403ec9926da205c6770827f33aac9d8f26e821", + filename: "node-v24.22.1-win-x64.zip", + sha256: "d2046d28c2c3dcd211ac5145c0bf30e2047ef9dfb306693c8c6e2eccd8b95fa5", }); #[cfg(all(target_os = "windows", target_arch = "aarch64"))] const MANAGED_NODE_ARTIFACT: Option = Some(ManagedNodeArtifact { platform: "win-arm64", - filename: "node-v24.18.0-win-arm64.zip", - sha256: "f274669adb93b1fd0fbf8f21fd078609e9dcc84333d4f2718d2dde3f9a161a01", + filename: "node-v24.22.1-win-arm64.zip", + sha256: "a0c807319fede24c4a0d8f84564c82a619bd313b16b10c007c383c2609e99171", }); #[cfg(not(any( @@ -206,7 +207,7 @@ fn kill_probe_group(pid: u32) { /// Returns `true` when the managed Node runtime is absent or no longer executes — /// meaning any existing npm adapter shims are broken and must be reinstalled. /// -/// This fires when the pinned Node version changes (e.g. v24.11.0 → v24.18.0): +/// This fires when the pinned Node version changes (e.g. v24.18.0 → v24.22.1): /// the old dir stays on disk, shims appear installed, but they fail at run time /// because the Node binary they reference is gone. Treating the adapter as /// missing forces `ensure_managed_node_runtime_blocking` to re-download Node and diff --git a/desktop/src-tauri/src/commands/agent_discovery/managed_node_tests.rs b/desktop/src-tauri/src/commands/agent_discovery/managed_node_tests.rs index a8e1d7f4c81..57fad8ccf2e 100644 --- a/desktop/src-tauri/src/commands/agent_discovery/managed_node_tests.rs +++ b/desktop/src-tauri/src/commands/agent_discovery/managed_node_tests.rs @@ -479,3 +479,27 @@ fn test_managed_node_runtime_ready_returns_false_when_binary_absent() { "managed_node_runtime_ready must return false when the binary file does not exist" ); } + +#[test] +fn managed_node_artifact_matches_pinned_version() { + let Some(artifact) = MANAGED_NODE_ARTIFACT else { + return; + }; + let extension = if artifact.filename.ends_with(".zip") { + "zip" + } else { + "tar.gz" + }; + assert_eq!( + artifact.filename, + format!( + "node-{MANAGED_NODE_VERSION}-{}.{extension}", + artifact.platform + ) + ); + assert_eq!(artifact.sha256.len(), 64); + assert!(artifact + .sha256 + .bytes() + .all(|b| matches!(b, b'0'..=b'9' | b'a'..=b'f'))); +} diff --git a/desktop/src-tauri/src/managed_agents/managed_node_paths.rs b/desktop/src-tauri/src/managed_agents/managed_node_paths.rs index bc0bb951e7c..1e2651c61b6 100644 --- a/desktop/src-tauri/src/managed_agents/managed_node_paths.rs +++ b/desktop/src-tauri/src/managed_agents/managed_node_paths.rs @@ -4,7 +4,14 @@ pub(crate) fn buzz_managed_npm_prefix() -> Option { dirs::data_dir().map(|dir| dir.join("Buzz").join("node-tools")) } -const BUZZ_MANAGED_NODE_VERSION: &str = "v24.18.0"; +/// Pinned Node.js release for the Buzz-private agent-adapter runtime. The +/// install path, download URL and readiness probe all read this one constant. +/// When bumping it, also update every `filename` and `sha256` in +/// `commands/agent_discovery/managed_node.rs` from the release's signed +/// `SHASUMS256.txt`. A bump makes existing installs rebuild: the new version +/// directory is missing, so the runtime is not ready, managed adapter shims are +/// treated as orphaned, and the next install downloads the new runtime. +pub(crate) const BUZZ_MANAGED_NODE_VERSION: &str = "v24.22.1"; pub(crate) fn buzz_managed_node_root() -> Option { dirs::data_dir().map(|dir| dir.join("Buzz").join("runtimes").join("node")) diff --git a/desktop/src-tauri/tauri.conf.json b/desktop/src-tauri/tauri.conf.json index 50c46ae6d76..3845c1d94f6 100644 --- a/desktop/src-tauri/tauri.conf.json +++ b/desktop/src-tauri/tauri.conf.json @@ -68,6 +68,7 @@ "icons/icon.ico" ], "macOS": { + "minimumSystemVersion": "10.15", "infoPlist": "Info.plist", "entitlements": "Entitlements.plist", "dmg": { diff --git a/docs/kiingo-fork-inventory.json b/docs/kiingo-fork-inventory.json index eb040353723..18fc7b93c50 100644 --- a/docs/kiingo-fork-inventory.json +++ b/docs/kiingo-fork-inventory.json @@ -1873,6 +1873,24 @@ "purpose": "Relay mesh restart safety. A restarted relay keeps its address but mints a new runtime id, so the previous boot's unexpired ready record pointed at the relay itself; boot awaited a dial to it before binding health, which could run past the liveness budget and restart the pod in a loop. Mesh boot no longer waits on any dial (the reconcile loop dials in the background), each dial is bounded well under the liveness budget, membership refuses records for another runtime id at its own address and gossiped records whose heartbeat outlived the registry expiry, and peers with no sign of life for that long are dropped from the peer table. The SIGTERM handler is installed before any startup work, so a signal during startup is not dropped when the relay runs as PID 1; on shutdown the relay deletes its own ready record, drains and exits 0. The boot lifecycle tests restart a mesh-on relay at the same address twice and assert readiness within the probe budget and a clean SIGTERM exit.", "removalCondition": "Drop when upstream mesh boot never awaits a peer dial before the health listener, bounds dials, ignores records at its own address and prunes dead peers, and installs its shutdown handler before startup work.", "upstreamStatus": "Generic, provider-neutral bug fix; not yet submitted to block/buzz." + }, + { + "classification": "retain-generic", + "owner": "Buzz desktop and toolchain maintainers", + "paths": [ + "bin/.node-24.22.1.pkg", + "bin/corepack", + "bin/node", + "bin/npm", + "bin/npx", + "crates/buzz-feature-flags/tests/fixtures/relay-feature-selection/Cargo.lock", + "desktop/src-tauri/src/commands/agent_discovery/managed_node.rs", + "desktop/src-tauri/src/commands/agent_discovery/managed_node_tests.rs", + "desktop/src-tauri/tauri.conf.json" + ], + "purpose": "October 2026 security advisories. The Buzz-private Node runtime for agent adapters moves to Node 24.22.1 (Brotli decoder RCE CVE-2026-111497, TLS hostname checks, randomUUID snapshot entropy, eMudhra CA removal), with SHA-256 pins from the release's SHASUMS256.txt and one version constant shared by the install path and the download code; the Hermit dev toolchain moves to the same Node; the feature-flag fixture lockfile resolves rustls-webpki 0.103.16 (RUSTSEC-2026-0382); and the macOS minimum system version is stated in the base Tauri config at the 10.15 the release config and deployment target already use.", + "removalCondition": "Drop when upstream pins Node 24.22.1 or later for the managed runtime and Hermit, its fixture lockfile resolves rustls-webpki 0.103.16 or later, and its base Tauri config states the macOS minimum.", + "upstreamStatus": "Generic, provider-neutral security update; not yet submitted to block/buzz." } ], "budgetAmendments": [