feat: migrate sandbox images to runtime numeric identity
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- docker, dockerfile
- 领域
- devops, infrastructure
调研方向
Start with the Community base image and its derived sandbox image Dockerfiles, locating named account creation, chown operations, and final USER sandbox declarations. After NVIDIA/OpenShell#2331 is released, add the proposed image conformance tests and run representative images through each supported driver. Done means candidate images pass numeric-identity, writeability, shell/Git/tool, release compatibility, and available OpenShift SCC checks before latest moves.
由索引模型根据 Issue 内容生成。
描述
Problem Statement
OpenShell-Community sandbox images still create and depend on a named sandbox user and group. Once OpenShell Docker and Podman support driver-injected numeric identities, that baked account becomes unnecessary and prevents the images from conforming to the same arbitrary-numeric-identity contract as Kubernetes and VM workloads.
This work depends on NVIDIA/OpenShell#2331 being released. It is part of the broader identity-removal tracking in NVIDIA/OpenShell#1959.
Proposed Design
After a compatible OpenShell release is available, remove named sandbox account creation and named ownership assumptions from the Community base image and all derived sandbox images. Keep the privileged supervisor account where it is required by the image runtime.
For direct docker run behavior, retain a non-root default using numeric USER 10001:10001; OpenShell itself may override that default to start the supervisor as root and selects the actual agent identity at runtime. Set HOME=/sandbox explicitly and make only the intended mutable sandbox paths writable by arbitrary non-root numeric identities. Do not make bundled credentials, policy, or immutable toolchains broadly writable.
Add image conformance tests that verify no sandbox passwd/group entry or pre-existing UID/GID 10001, then run the image as a numeric UID/GID absent from the image and verify /sandbox writeability and common shell/Git/tool behavior. Test one representative Community image through each supported OpenShell driver before moving latest.
Publish a candidate tag first. Do not move the no-user image to latest until it passes against the released compatible OpenShell version, including the OpenShift SCC identity check where available.
Alternatives Considered
- Remove only the final
USER sandbox: rejected becausechown sandbox:sandbox, copied ownership, startup scripts, and home-directory assumptions would remain. - Publish no-user Community images before Docker/Podman runtime support: rejected because userless BYOC images would fail on those drivers.
- Retire the Community base image as part of this change: out of scope. The base provides OS packages, toolchains, agents, policy, skills, and shell setup beyond the named account; retirement needs a separate replacement decision.
Agent Investigation
- The Community base and its derivatives contain named user/group creation, named
chownoperations, or finalUSER sandboxdeclarations. - A numeric Dockerfile
USERis only the standalone image default. In OpenShell-managed Docker/Podman sandboxes, the privileged supervisor starts first and launches the agent under the driver-resolved numeric identity. - This issue is intentionally downstream of NVIDIA/OpenShell#2331 and should not be implemented or published before that issue’s runtime support is released.
- 主要语言
- Dockerfile
- 星标
- 191
- 派生
- 76
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA/OpenShell-Community 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
opencode sandbox policy: npm child-process CONNECT denied (ECONNRESET) and no Vertex AI / WIF egress 未关闭
难度 3/5 1-2 天 新手友好度 74/100
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 35/100
查看 NVIDIA/OpenShell-Community 的全部 Issue
相似的 Issue
-
kind/bug needs-triage
难度 1/5 1 小时以内 新手友好度 72/100
matrixorigin/matrixone#29223 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
copse-dev/agent-pane#2953 ·
-
bug ci-failure high priority
难度 2/5 1-3 小时 新手友好度 74/100
vllm-project/vllm-omni#7972 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 90/100
simonw/sqlite-utils#872 ·
-
bug good first issue
难度 1/5 1 小时以内 新手友好度 88/100
amponce/archive-movie-browser#166 ·