Agent: Windows process containment and environment allowlist (follow-up to #320)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 12/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- docker, electron, nodejs, powershell, typescript
- 領域
- desktop-dev, devops, security
調査の方向性
The work spans runtime/process-tree.ts (killTreeAndEscapees), runtime/command-environment.ts (the win32 denylist to replace with an allowlist) and a Job Object wrapper that needs a native addon or ffi. Start by reading how killTreeAndEscapees and the environment filter are wired, then decide the native-addon approach with maintainers. Done means a grandchild reparented outside the tree is killed on Stop in Windows CI, and git, node, npm and python still run under the allowlist.
索引モデルが issue の本文から書いたものです。
説明
Not finishable safely without Windows hardware or a native addon, so split out from the 0.3.7 follow-ups.
- Job Object (H2, Windows). Node cannot create a Job Object with KILL_ON_JOB_CLOSE without a native addon (e.g. a small N-API module or ffi). 0.3.7 ships a PowerShell ParentProcessId sweep plus
taskkill /T /F(runtime/process-tree.ts, killTreeAndEscapees), which cannot reach processes started through WMI/schtasks or whose parent already exited. Spawn the shell inside a Job Object and close the handle on Stop/timeout. Test on Windows CI with a grandchild that is reparented. - Windows environment allowlist (H3 / N7). runtime/command-environment.ts still passes the whole environment minus a denylist on win32. Kept today: STRIPE_SECRET_KEY, DJANGO_SECRET_KEY, LITELLM_MASTER_KEY, _KEY, GITHUB_PAT, PGPASSWORD, MYSQL_PWD, DATABASE_URL, REDIS_URL, SENTRY_DSN, SLACK_WEBHOOK_URL, DOCKER_AUTH_CONFIG, NODE_OPTIONS, ELECTRON_RUN_AS_NODE. Use an allowlist: SystemRoot, windir, ComSpec, PATHEXT, PATH, TEMP, TMP, USERPROFILE, APPDATA, LOCALAPPDATA, ProgramData, ProgramFiles, SystemDrive, HOMEDRIVE, HOMEPATH, USERNAME, USERDOMAIN, COMPUTERNAME, OS, PROCESSOR_*, NUMBER_OF_PROCESSORS, PSModulePath. Check that git, node, npm, python still run on windows-latest CI.
- Already-daemonised processes (POSIX). The ppid walk cannot find a process that was reparented to init before Stop (double fork that outlived its parent). Options: tag the run's environment with a unique MUSTER_RUN_ID and sweep
ps ewwfor it on Stop (Linux: /proc/*/environ), or a cgroup/subreaper where available. - A background job that outlives a successful command is never cleaned up (matches the Codex route); decide whether to sweep after each command.
Source: scratchpad/sec320-REVERIFY.md (H2, H3, N2, N7).
- 主要言語
- TypeScript
- スター
- 3
- フォーク
- 0
- 平均マージ
- 17時間 33分
- マージ済み PR(30日)
- 163
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
musterhq/muster-code のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
musterhq/muster-code#866 ·
メンテナーはふだん 1 日以内に返信
-
p2 type:feature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
musterhq/muster-code#843 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
p1 type:feature
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
musterhq/muster-code#840 ·
メンテナーはふだん 1 日以内に返信
-
p1 type:feature
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
musterhq/muster-code#829 ·
メンテナーはふだん 1 日以内に返信
-
type:bug
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
musterhq/muster-code#815 ·
メンテナーはふだん 1 日以内に返信
musterhq/muster-code の issue をすべて見る
似ている issue
-
[analytics-core] getQueryParams does not decode `+` as space and truncates values containing `=`オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
amplitude/Amplitude-TypeScript#2179 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
ci good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
TMHSDigital/GH-Arcade#111 ·
-
AsnIntegerConverter.toASN coerces strings with +value, rounding integers outside safe-integer rangeオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PeculiarVentures/asn1-schema#189 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100