Support atomic Sandbox identity preconditions for ExecSandbox

Aperta
#5,872 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
grpc, rust

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Rust
Stelle
21.5k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/OpenShell

Tutte le issue di NVIDIA/OpenShell

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.