Move files into and out of a fiber
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- go, kubernetes, linux
調査の方向性
Start by reading the linked stages #34, #35, #38, #42, and the design doc #44 to understand the workspace layer and current backend support. The remaining work includes gVisor integration, cross-home mobility testing, kernel-enforced disk budgets, and the sampler fallback. Done means the stated cross-backend upload, park, resume, download, budget, and hostile-tree requirements pass with conformance coverage.
索引モデルが issue の本文から書いたものです。
説明
A caller has no way to move files into or out of a fiber. The only bytes in are the 4096-byte Clone payload. An agent sandbox needs to upload a dataset into a running session and download a result from it, and both must survive a park and a move to another home.
Proposed.
- Two streaming RPCs on
Fibers,UploadandDownload, plusListFiles. They are keyed byfiber_idand authorized exactly likePark. - Each fiber gets a private workspace on the home, mounted at
/workspace. fiberd reads and writes it from the host side, never through the fiber. - At park the workspace is captured as
workspace.tarinside the delta, so it is sealed, signed, published, claimed and exported with the delta. - A new grant field
disk_budget_bytescaps each workspace. Zero means no workspace. - proc, runc and gVisor support it. Hyperlight refuses such a grant at admission.
Stages. Each with table-driven unit tests, non-root, amd64 and arm64.
- 1. Proto and RPCs,
disk_budget_bytes, and an admission check on every stream message. #35 - 2. The workspace file layer, hardened against hostile trees (
.., links swapped mid-upload, FIFOs, magic links, hard links, sha256 mismatch). It lands before any backend wiring. #34 - 3. proc: mount, hide, external mount at dump, capture and unpack. #38
- 4. runc: the fiber's filter refuses mounts, so the child moves a mount fiberd prepared through one gated instruction before template code runs, as with
clone3. Needs a new zygote ABI version. #42 - 5. gVisor: bundle mount and pooled workspaces. gVisor still refuses a grant with a disk budget.
- 6. Mobility: publish, claim, export and import carry
workspace.tar.- The delta paths carry
workspace.tar, since they move the whole delta directory. #38 - A test that moves a workspace to another home and reads it there.
- The delta paths carry
- 7. Budget: project quota, with a sampler only behind a flag. The proc filter must refuse the project-ID ioctl.
- The fiber filter refuses the project-quota ioctls. #36
- The project quota on the workspace directory, so the kernel enforces the budget. Today it is checked on uploads, and on the fiber's own writes only at park.
- The sampler fallback, behind a flag.
- 8. Go, Python and TypeScript clients, conformance cases and docs. #40, #41, conformance C12 in #38 and #42, design doc in #44
Open decisions. Recommendations in brackets.
- RPC on
Fibers, aFilesservice, or a side channel [RPC onFibers]. - Workspace in the delta or its own snapshot [in the delta].
- Zero budget means none or unlimited [none, fail closed].
- Disk enforcement [project quota, sampler only with a flag].
- Mount path fixed or per grant [fixed
/workspace]. - How a runc fiber gets its mount [a gated
move_mountin the child, fallback fiberd binding from outside]. - Directory download as a tar stream [later].
- Access to a parked session's files [no, resume first].
- Seal local deltas at rest [not here, a separate item covering memory and workspaces].
- Deduplicate large datasets across parks [later, content-addressed layers].
Risks. CRIU must restore files exactly as dumped, so capture must be proven with --leave-stopped on proc and runc. CRIU on a runc fiber with its own mount namespace is unproven. gVisor restore over changed host files is unmeasured. Large workspaces lengthen parks, including pressure parks. fiberd doing file operations as root in tenant-controlled trees is the main attack surface.
Done when. A caller uploads into a fiber on proc, runc and gVisor, parks it, resumes it on another home, and downloads the result. The budget holds, hostile trees are refused, and conformance covers it.
- 主要言語
- Go
- スター
- 5
- フォーク
- 5
- 平均マージ
- 15時間 27分
- マージ済み PR(30日)
- 41
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/fiberd のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
メンテナーはふだん 2 日以内に返信
-
[Bug] vela config-template apply drops the template's metadata.description対応中かも @backendArchitect が今日担当しました。 オープンarea/cli area/config good first issue type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
kubevela/kubevela#7756 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信