Support least-privilege ecosystem tool-profile exports in Cloud Hypervisor and NVX
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 22/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- github-actions, go, linux, typescript
調査の方向性
Start with the Cloud Hypervisor and NVX export and runtime-validation entry points cited in the issue, then read the existing export and filesystem policy tests. Define and test a narrow profile-resource contract with separate host and guest paths and permission checks; cover unsafe paths and conflicting exports. Done includes policy tests and real-KVM acceptance for both runtimes covering Go, gopls, semantic analysis, tests, controlled installation, and write boundaries.
索引モデルが issue の本文から書いたものです。
説明
Request
Provide a supported, fail-closed way for primary-agent Cloud Hypervisor and NVX workloads to consume declaratively provisioned ecosystem tool profiles: immutable tool binaries, a selected runner toolchain, and isolated writable caches/tool-install directories, with explicit host-to-guest path mapping.
Motivating integration: github/gh-aw#70031 adds tools.profile: go. It currently rejects both microVM runtimes rather than silently dropping the profile's mount contract. This is not a fundamental inability to run Go in a VM: it is a missing export/permission/path integration contract.
Current profile contract
Host setup provisions Go 1.26 under $RUNNER_TOOL_CACHE/go/..., installs pinned [email protected], and verifies semantic readiness before starting the agent. Profile state is under $RUNNER_TEMP/gh-aw/tool-profiles/go:
| Resource | Required agent access |
|---|---|
| Selected Go toolchain | Read-only |
Profile bin/gopls |
Read-only |
Profile cache/ (GOPATH, GOCACHE, GOMODCACHE, and GOBIN=cache/bin) |
Read-write |
| Checkout | Existing workflow workspace policy |
A separate Docker MCP sidecar runs gopls with its own restricted tool list, read-only workspace/toolchain/binary mounts, and writable profile cache. Its host-side mounts do not expose these resources inside the agent VM. Builds/tests and additional go install commands must run in the agent sandbox, not through a host-side MCP shell runner.
Verified blockers
Inspected AWF main at cf4e0068e090fba4e61f5bb2b87430c220b3be0a; confirmed both additional-volume rejections also exist in v0.28.62, the current gh-aw default.
- Both runtimes reject additional host volume mounts.
assertCloudHypervisorPreSecurityCompatibilityandassertNvxRuntimeCompatibilityreject nonemptyconfig.volumeMounts. Simply emitting the existing profile's--mountflags will fail. - Cloud Hypervisor already exports runner-temp state, but read-only.
resolveCloudHypervisorExportsoptionally exports$RUNNER_TEMP/gh-awat the same guest path with modero; its tool-cache policy can expose Go read-only. Thus profile binary visibility is not necessarily missing, but writes to the current profile's cache/GOBIN are blocked.filesystem.allowWriteonly narrows existing writable exports; it cannot upgrade that read-only export. - NVX does not export the profile directory.
resolveNvxExports/validateNvxExportssupport the workspace and optional read-only runner tool cache, withMAX_EXPORTS = 2. There is no runner-temp profile export.buildNvxGuestEnvironmentremoves hostRUNNER_TEMPand maps only declared workspace/tool-cache locations. - Guest paths need an explicit contract. Both runtimes expose the checkout at
/workspace; profile environment and host-side MCP configuration currently use runner paths. Forwarding PATH/GOROOT/GOBIN alone cannot repair absent/read-only exports or reconcile host-side and guest-side workspace paths. - gh-aw intentionally blocks this combination. Its profile validator rejects these runtimes and
appendCustomMountArgsskips their custom mounts. These guards must remain until a supported AWF contract and corresponding compiler integration exist: profile validator, mount emission.
Desired capability and acceptance criteria
- Accept an explicitly validated profile-resource/export declaration, or an equivalent narrow runtime contract. Do not require unrestricted arbitrary host mounts, broad writable runner-temp/tool-cache exports, privileged host execution, or a Docker fallback.
- Support read-only toolchain/profile binaries and a narrowly scoped writable profile cache/GOBIN, with host-enforced permission boundaries. Permit host-side MCP analysis and agent-side tooling to observe the intended live workspace/cache state, or document a supported equivalent.
- Resolve host and guest paths independently and expose usable guest
PATH,GOROOT,GOPATH,GOCACHE,GOMODCACHE, andGOBINwithout invalidating host-side MCP paths. Preserve/workspacesemantics and keep unrelated runner state inaccessible. - Reject unsafe sources/targets, symlink escapes, writable aliases of immutable toolchains/binaries, conflicting/nested exports, and unsupported configurations before launch. Preserve credential isolation and network policy.
- Add deterministic policy/path tests plus eligible-runner, release-attested real-KVM acceptance for both runtimes:
go version,gopls version, a dependency-free semantic probe,go test, and a controlledgo installinto GOBIN with subsequent execution. Verify immutable binaries cannot be modified and all permitted writes stay within the declared cache/workspace boundaries. - Publish capability/version guidance so gh-aw can gate support and replace its Docker-only rejection only after integrating the new contract.
Related work and evidence limits
Related but distinct: #10205 consolidates existing Cloud Hypervisor workload/export policy and explicitly avoids authority expansion; this requests new primary-agent profile resources and NVX parity. Existing Go/Serena smoke workflows are useful acceptance targets, not proof that this exact profile layout already works.
This investigation is source/contract-based. No live Cloud Hypervisor/NVX run or workflow dispatch was performed, and host-side gopls readiness is not claimed as VM acceptance.
- 主要言語
- TypeScript
- スター
- 169
- フォーク
- 89
- 平均マージ
- 5時間 18分
- マージ済み PR(30日)
- 450
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/gh-aw-firewall のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
github/gh-aw-firewall#12415 ·
メンテナーはふだん 1 日以内に返信
-
code-quality refactoring
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
github/gh-aw-firewall#12411 ·
メンテナーはふだん 1 日以内に返信
-
code-quality refactoring
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
github/gh-aw-firewall#12345 ·
メンテナーはふだん 1 日以内に返信
-
[Duplicate Code] Repeated lstat identity-swap stub and fixture setup in src/nvx/live-mount-policy.test.ts対応中かも @lpcox が 1 日前に担当しました。 オープンcode-quality refactoring
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
github/gh-aw-firewall#12023 · リアクション 1 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
awf-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/gh-aw-firewall#11612 ·
メンテナーはふだん 1 日以内に返信
github/gh-aw-firewall の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
activepieces/activepieces#17974 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
OHDSI/Data2Evidence#3777 ·
メンテナーはふだん 3 日以内に返信
-
bug enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
AOSSIE-Org/PictoPy#1802 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Termix-SSH/Plugin-Snippets#26 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
agent-reported bug from-app needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nightly-labs/openbot#20504 ·
メンテナーはふだん 1 日以内に返信