feat: configure the upstream proxy once for all compute drivers
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 30/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- rust
- Domínio
- infrastructure, tooling
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Rust
- Estrelas
- 21.5k
- Forks
- 2.1k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de NVIDIA/OpenShell
-
state:triage-needed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
-
state:triage-needed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
bug: Ready=False/PodTerminating is treated as a terminal sandbox failureTalvez já em andamento @TaylorMutch assumiu há 9 dias. Abertastate:accepted state:pr-opened
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
state:triage-needed
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 78/100
-
state:triage-needed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Todas as issues de NVIDIA/OpenShell
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 2 dias
-
autofixer: follow-up
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
tursodatabase/turso#12531 ·
Mantenedores costumam responder em até 1 dia
-
bug help wanted ui
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
userFRM/egui-charts#4292 ·
Mantenedores costumam responder em até 1 dia
-
CHANGELOG.md out of dateAbertaIssue-Bug Need-Review
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 85/100
PowerShell/DSC#1832 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia