feat: configure the upstream proxy once for all compute drivers
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- rust
调研方向
Start by reading the supervisor network config definition behind [openshell.supervisor.network] and the precedent set by additional_ca_bundle, which moved there already. Then grep for https_proxy, no_proxy and proxy_auth_file to find where each driver table parses and validates its own copy, and trace how the gateway fills the Configure message sent to launched drivers. Work out where the shared block is validated once and where per-driver aliases get mapped with a deprecation warning plus a conflict error, then wire the same path into config preflight. Done means the four acceptance criteria hold for the VM, Podman and Docker drivers, including the both-locations-disagree failure.
由索引模型根据 Issue 内容生成。
描述
User Story
I run OpenShell sandboxes behind a corporate proxy with more than one compute driver. I want to set the proxy once, so that switching drivers or relying on auto-detection doesn't mean copying proxy settings between driver tables.
Problem Statement
The upstream proxy settings (https_proxy, no_proxy, proxy_auth_file, proxy_auth_allow_insecure, proxy_connect_by_hostname, proxy_ca_bundle) are repeated in each [openshell.drivers.<name>] table. They describe how every sandbox supervisor reaches the outside, regardless of backend, yet each driver owns its own copy of the keys and its own validation.
Impact / Why This Matters
An operator who may end up on Podman, Docker, or the VM driver, for example through auto-detection, must keep three tables in sync. A missed copy silently leaves one backend without the proxy. The settings also differ from the destination CA, which is already configured once.
Proposed Design
Add a proxy block under [openshell.supervisor.network], next to the additional destination CA. The gateway validates it once and sends it to launched drivers in Configure, the same way it sends destination trust. The per-driver keys keep working as deprecated aliases: the gateway maps them onto the shared block with a warning, and reports a clear error when both locations are set and disagree. Drivers stop validating proxy settings themselves.
Suggested UX (if applicable)
[openshell.supervisor.network]
https_proxy = "http://proxy.corp.example:3128"
no_proxy = "10.0.0.0/8,*.svc.cluster.local"
[openshell.drivers.podman]
# https_proxy = "..." # deprecated: warns and is mapped to the block above
Acceptance Criteria
- A proxy configured once under
[openshell.supervisor.network]applies to the VM, Podman, and Docker drivers. - Existing per-driver proxy keys keep working and log a deprecation warning.
- Setting different values in both places fails startup and
config preflightwith an error naming both keys. -
config preflightvalidates the shared block without starting a driver.
Alternatives Considered
Keep the keys per driver, which is the current behavior and requires repeating them. A gateway-wide environment variable avoids the repetition but loses the validation and the documented config surface. Compare how additional_ca_bundle moved to [openshell.supervisor.network]; this follows the same path.
- 主要语言
- Rust
- 星标
- 21.5k
- 派生
- 2.1k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA/OpenShell 的其他 Issue
-
state:triage-needed
难度 2/5 1-3 小时 新手友好度 86/100
-
state:triage-needed
难度 2/5 1-3 小时 新手友好度 78/100
-
bug: Ready=False/PodTerminating is treated as a terminal sandbox failure可能已有人在做 @TaylorMutch 于 9 天前认领。 未关闭state:accepted state:pr-opened
难度 2/5 1-3 小时 新手友好度 78/100
-
state:triage-needed
难度 1/5 1-3 小时 新手友好度 78/100
-
state:triage-needed
难度 2/5 1-3 小时 新手友好度 62/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
autofixer: follow-up
难度 2/5 1-3 小时 新手友好度 78/100
tursodatabase/turso#12531 ·
维护者通常 1 天内回复
-
bug help wanted ui
难度 2/5 1-3 小时 新手友好度 82/100
userFRM/egui-charts#4292 ·
维护者通常 1 天内回复
-
Issue-Bug Need-Review
难度 1/5 1-3 小时 新手友好度 85/100
PowerShell/DSC#1832 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复