A sealed script runner anyone can host

Aperta
#35 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, typescript

Direzione di ricerca

Start with the runner in packages/bim-script-runner and the hosted sandbox reference at apps/mutinybim-web/src/script-sandbox.ts; identify how the runner is bundled and which resource caps it already enforces. Then build the container and docs, and add a test showing a script cannot reach the network while the requested filesystem and resource limits hold.

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

Descrizione

area: scripting help wanted

From the roadmap ("Next").

The local runner in packages/bim-script-runner runs your own scripts in a fresh, capped process. To host other people's scripts safely, the same runner files need to run in a container with a deny-all network.

What to build

  • A container image and its build that bakes in the runner bundle.
  • A deny-all network, a read-only filesystem except a scratch folder, and the kit's existing memory, time and output caps.
  • Docs for running it, and a test that a script can't reach the network.

The hosted app already seals scripts with bubblewrap on its own machine (apps/mutinybim-web/src/script-sandbox.ts). That is a good reference.

Lingua principale
TypeScript
Stelle
85
Fork
10
Merge medio
1h 28m
PR unite (30g)
20

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 permitzip/mutinybim

Tutte le issue di permitzip/mutinybim

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.