feat(sandbox): explore quarantine for live incident investigation
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 18/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Domínio
- security
Direção de pesquisa
This is an explicitly design-only proposal, so nothing is implemented yet; start by reading the linked OpenShell Research dev note and the related stop-hold proposal #3153, then map the existing openshell sandbox subcommands and the current policy-update and stop paths in the repository. The deliverable is a written design covering the four acceptance criteria: effective-state reporting, permission model separation from policy-write and sandbox-stop, audit and restart/reconciliation durability, and release semantics that leave stored policy intact, with the dedicated quarantine state compared against a sandbox-scoped setting. Done means that comparison, the inspection path for authorized operators, and the command surface (quarantine, get, unquarantine as placeholders) are agreed in the issue thread.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
User Story
I use OpenShell to run agent workloads and investigate suspicious activity. I need an operator or detector to isolate a sandbox from workload network traffic while an authorized operator can still inspect it.
Problem Statement
OpenShell provides policy updates and sandbox stop. A policy update requires policy-write access and changes the configured policy. Stopping the sandbox also stops live inspection. Operators need a sandbox-level containment action they can delegate without granting either permission.
Impact / Why This Matters
When a detector flags a sandbox, an operator needs to contain it quickly and preserve its running state for investigation. Rewriting policy can conflict with the operator's managed configuration. A dedicated permission would let a detector contain the sandbox without giving it control over policy or general lifecycle operations. OpenShell Research dev note
Proposed Design
Explore a sandbox quarantine operation that blocks workload ingress and egress, cuts existing workload connections, and leaves stored policy intact. Define how authorized operators inspect the sandbox through OpenShell while it is isolated. Make the effective quarantine status visible to operators and clients.
Prefer exploring a dedicated quarantine state. Compare it with a sandbox-scoped setting and define how containment interacts with reconciliation, restart, and policy updates. Decide whether recovery uses an explicitly authorized release operation or an explicit variant of sandbox start. A routine restart or policy refresh must preserve quarantine.
Suggested UX
Command names are examples for design review.
openshell sandbox quarantine my-sandbox
openshell sandbox get my-sandbox
openshell sandbox unquarantine my-sandbox
Acceptance Criteria
- The design defines when OpenShell reports quarantine as effective, how it handles existing and new workload connections, and which authorized inspection paths remain available.
- The design defines permissions for quarantine, inspection, and release. A detector can receive quarantine permission without policy-write or sandbox-stop permission.
- The design defines how callers see and audit quarantine and release, how containment survives restart and reconciliation, and how an authorized operator safely restores normal access.
- Applying and releasing quarantine leaves the stored policy intact. Release returns the sandbox to normal enforcement of its configured policy.
Alternatives Considered
- A sandbox-scoped setting could express a network deny override. Compare whether it can offer dedicated authorization, effective-state reporting, and durable containment.
- A temporary deny policy requires policy-write access and creates a policy change to undo after investigation.
- Stop retains the workspace but prevents live inspection. The related stop-hold proposal #3153 explored blocking restart of a stopped sandbox.
- Request middleware can reject individual inspected requests. Quarantine needs a sandbox-wide control for inbound and outbound workload traffic.
Checklist
- I've reviewed existing issues and the published docs
- This is a design proposal, not a "please build this" request
- 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