Repository navigation
bun: 1.4.2 -> 1.4.4 - #577354
bun: 1.4.2 -> 1.4.4#577354
Conversation
|
|
both failures are hash mismatch. |
|
Investigated about these hash mismatches, this is caused by bun 1.4.4 using different folder names in The issue is that this changes the pinned hash of the I'm not sure what's the best option here. From what I see:
|
|
This is a security update, I would say, update what you can, whatever you have finished before the oom and then let's tag the rest of the maintainers before merging so that they are aware that this is breaking |
@baptiste0928 When I was doing #556047, I used Each |
…11943) bun embeds its own root store; 1.4.2 (locked nixpkgs and unstable HEAD) trusts the compromised emSign intermediates (verified against the advisory checker host, --use-system-ca does not help). 1.4.4 rejects both chains. Release hashes were verified locally and match NixOS/nixpkgs#577354. A version guard turns this into a no-op once nixpkgs ships >= 1.4.4.
bun embeds its own CA store instead of reading the system's, so `--use-system-ca` cannot repair a release that trusts a compromised CA and every binary compiled with that bun carries the same roots - the image's `bun` and the pi standalone binary both do. Both nixpkgs inputs still pin 1.4.2, whose store trusts the compromised eMudhra/emSign intermediates (CVE-2026-111943); 1.4.4 rejects them (NixOS/nixpkgs#577354). nix/pins.nix pins 1.4.4 and its published asset hashes, and nix/lib/bun-cang.nix applies that to nixpkgs-unstable's package for both consumers. The override is guarded on the version, so once an input ships 1.4.4 the helper returns the input's package unchanged and there is nothing to remove later. The flake exports the result as `packages.<system>.bun`, and `checks.bun-cang-version` fails when the image's bun is not the pinned release. Measured: the root store drops from 121 to 118 entries and the three eMudhra roots (emSign ECC Root CA - G3/C3, emSign Root CA - C1) are gone; `.#container` contains only bun-1.4.4 (0 references to 1.4.2), pi is built by bun-1.4.4, the new image's guest reports `bun 1.4.4` with 118 roots and `pi 1.3.0`.
|
I support your decision to merge |
|
FYI I tried using Since this really affects only rebuilds and most packages are still available from the binary cache, I agree it's okay to merge now and update the hashes later (probably the next time each package gets an update). Especially given this contains a security update. |
… flake.lock nixpkgs bumped bun from 1.4.2 to 1.4.4 (NixOS/nixpkgs#577354) a few hours after opencode 2.2.5 landed with a node_modules hash computed under bun 1.4.2 (NixOS/nixpkgs#581607). bun 1.4.4's `bun install` filters optional dependencies by the host libc, so the installed tree now differs between Linux and Darwin and the single upstream hash matches neither (NixOS/nixpkgs#582673). cache.nixos.org has no opencode 2.2.5 for any platform, so home-manager switch rebuilds it locally and fails on the mismatch. Override the FOD hash per platform. The Darwin value comes from a local build on this machine; the Linux value is the one reproduced in NixOS/nixpkgs#582673 and used by PR #582675, not verified here. Drop the overlay once nixpkgs ships a fix (#582675 or a follow-up).





Changelog: https://bun.sh/blog/bun-v1.4.4
This version contains root certificates update for CVE-2026-111943 (eMudhra Intermediate CA Compromise), merged in oven-sh/bun#46159. See #576544.
Supersedes #574334
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.