Support atomic Sandbox identity preconditions for ExecSandbox

Aberta
#5,872 1 comentário 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
15/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
grpc, rust

Direção de pesquisa

Start with the pinned API surface in proto/openshell.proto lines 1996-2038, then trace the ExecSandbox and ExecSandboxInteractive admission paths to see where Workspace/name lookup happens and where the relay is bound. The change must validate an expected immutable Sandbox ID plus supervisor/main-process generation atomically before command start or stdin delivery, while preserving request-ID semantics. Done means both Exec APIs reject mismatches before execution, and regressions cover A replaced by B at the same name plus a process-generation change within one Sandbox.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

state:triage-needed

A controller may prepare Sandbox A and later execute a short activation command. ExecSandbox and ExecSandboxInteractive currently select by Workspace and Sandbox name. If A is deleted or replaced under that name before execution, the command can run in replacement B. A request UUID prevents duplicate launch but does not assert that the named Sandbox is the instance or process generation previously prepared by the controller.

Please support an optional expected immutable Sandbox ID and supervisor/main-process instance or generation in both Exec APIs. Validate them atomically during admission and bind the relay to that exact instance; reject mismatches before starting the command or delivering stdin. Preserve durable request-ID semantics. Include a regression in which Sandbox A is prepared, replaced by B at the same name, and the activation request for A fails without executing in B; also cover a process generation change within one Sandbox.

Related Provider attachment issue: https://github.com/ai-openshell/openshell/issues/5794
Pinned API: https://github.com/ai-openshell/openshell/blob/v0.1.8/proto/openshell.proto#L1996-L2038

Linguagem predominante
Rust
Estrelas
21.5k
Forks
2.1k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de NVIDIA/OpenShell

Todas as issues de NVIDIA/OpenShell

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.