Repository navigation
fix(home): take Node.js 24.22.1 and uv 0.13.4 from their official builds - #275
Merged
Merged
Conversation
Both releases fix the trust of the compromised eMudhra intermediates; nixpkgs has Node.js 24.22.1 only on staging and uv 0.13.4 only on master. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 21, 2026
furedea
added a commit
that referenced
this pull request
Oct 21, 2026
#277) ## 概要 2026-10-21,litellm 1.107.0 が PyPI 上で改ざんされ,認証情報を盗むマルウェアが仕込まれた(約 2 時間で隔離).各リポジトリの `pyproject.toml` には `exclude-newer = "1 week"` があるが,swe-bench-trial にはなく,`uvx` やプロジェクト外の `uv tool` には効かない.uv のユーザー設定で同じ待機期間を全体の既定にする. | | 変更前 | 変更後 | |---|---|---| | `~/.config/uv/uv.toml` | なし | `exclude-newer = "1 week"`(home-manager の `programs.uv.settings`) | | `exclude-newer` のないプロジェクト(swe-bench-trial),`uvx`,`uv tool` | 公開直後の版も入る | 公開から 1 週間たった版だけ入る | | `exclude-newer` のあるプロジェクト | プロジェクトの設定 | 変わらない(プロジェクトの設定が優先される) | ## 受け入れ条件 - [x] 生成される `uv/uv.toml` が `exclude-newer = "1 week"` になる - [x] 同じ設定で `litellm` を lock すると 1.105.1 が選ばれる(設定なしでは 1.106.2) - [x] `nix flake check` が通る - [ ] `switch` 後,`~/.config/uv/uv.toml` に設定が入る <details> <summary>手元の確認結果と補足</summary> - 改ざん版 1.107.0 は,uv のキャッシュ,各リポジトリの lock,venv,nix store のどこにも入っていない.手元にあるのは 1.82.4 と 1.105.1(swe-bench-trial の `.venv` と uv キャッシュ)だけ. - 10 月に公開された litellm の CVE(CVE-2026-35029,CVE-2026-59821〜59823 など)は,プロキシサーバー(AI gateway)の機能に対するもの.swe-bench-trial はライブラリとして使っているだけで,サーバーは動かしていない. - uv の本体は `programs.uv.package` で #275 の公式ビルド(0.13.4)を使う.`home.packages` からは外した. - 参考:[Wiz: LiteLLM compromised](https://www.wiz.io/blog/litellm-compromised-steals-credentials),[Socket: LiteLLM PyPI package compromised](https://socket.dev/blog/litellm-compromise) </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
6 of 7 tasks
furedea
added a commit
that referenced
this pull request
Oct 24, 2026
…cial binaries (#335) ## 概要 eMudhra の中間 CA 侵害への一時対応として入れた公式バイナリ固定のうち,uv と dprint を外し,nixpkgs-unstable のパッケージに戻す.nixpkgs-unstable が両方の修正版を取り込んだ. | | 変更前 | 変更後 | |---|---|---| | uv | 公式ビルド 0.13.4(`nix/packages/uv_bin.nix`,#275) | `unstable.uv`(0.13.4) | | dprint | 公式ビルド 0.64.1(`nix/packages/dprint_bin.nix`) | `unstable.dprint`(0.64.1) | - `nix/home/default.nix`: `uvPackage = unstable.uv;`,`dprintPackage = unstable.dprint;` - 2 つのパッケージファイルを削除.ほかの参照は残っていない. - `flake.lock`: ロック済みの nixpkgs-unstable は uv 0.12.1 だったので,`nix flake update nixpkgs-unstable` でこの入力だけを更新した. - uv は #276 の uv 行(stable 26.05 は 0.11.21 のままなので「待てない場合は `unstable.uv` に切り替える」に従う).dprint は #276 の行ではなく,`dprint_bin.nix` 自身の「nixpkgs 入力が 0.64.1 以上になったら戻す」に従う. Refs #276(Node.js と CA の行は残っているので Closes ではない) ## 確認 - [x] `nix flake check` が通る - [x] `darwin-rebuild build --flake .#mbp` が通る - [x] ビルドした uv が 0.13.4,dprint が 0.64.1 - [x] ビルドした uv が両方の検査ホスト(`dv-g3b-emudhra` / `dv-g3b-aaa-emudhra`)を `invalid peer certificate: UnknownIssuer` で拒否する(`uv run --with` で各ホストを index に指定) - [x] uv 管理の Python 3.14 の `urllib` も両方を `CERTIFICATE_VERIFY_FAILED` で拒否する - [x] ビルドした dprint でこのリポジトリの `dprint check` が通る(プラグインを取得できる) - [ ] `switch` 後に `uv --version` が 0.13.4,`dprint --version` が 0.64.1 になる ## レビュー(uv の 1 ラウンド)P2 以下の記録 - P3: `nixpkgs-unstable` は uv 専用の入力ではなく,約 2.5 か月進んだ.`unstable.*` を使う他のパッケージ(gh-stack,git-wt,lefthook,pi-coding-agent,oxfmt,oxlint,tsgolint,atuin,rust-analyzer)も一緒に更新される.`flake check` と build は通っている. - Node.js は unstable が 24.21.0 のままなので固定を残す. - dprint の切り替えはレビュー後に追加した(変更は 1 行と削除のみ). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Node.js と uv は自前の CA を内蔵しているので,#274 の CA ストアの修正では侵害された eMudhra 中間 CA を拒否できない.修正版(Node.js 24.22.1,uv 0.13.4)は nixpkgs ではまだ staging/master にしかないため,nixpkgs が追いつくまで公式のビルド済みバイナリを使う.
unstable.nodejs_24(24.18.1)nix/packages/nodejs_bin.nix)pkgs.uv(0.11.21)nix/packages/uv_bin.nix)dv-g3b-emudhra/dv-g3b-aaa-emudhra)CERT_REVOKED,uv は接続エラーで拒否受け入れ条件
SHASUMS256.txt,uv は GitHub release の digest)nix flake checkが通るapi.github.comに接続できるswitch後,node --versionが v24.22.1,uv --versionが 0.13.4 になる補足と戻し方
nodejsPackageをunstable.nodejs_24に,使う nixpkgs が uv 0.13.4 以上になったらuvPackageをuvに戻し,2 つのファイルを消す.各ファイルの冒頭にも同じ条件を書いた.🤖 Generated with Claude Code