Give fibers outbound network through a backend interface

Aperta
#124 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go, kubernetes, linux

Direzione di ricerca

Start by reading the backend interfaces, especially WorkspaceHolder, and the gVisor attach path that uses --network-proxy-path. Check how the bundle, template rewarm, Bind, Clone, and runsc restore fit together, then inspect the conformance suite and design docs. Done means the egress interface, grant rules and refusals are covered, restored fibers are verified, clone cost is measured, and backend support is documented.

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

Descrizione

enhancement

Fibers on gVisor and Hyperlight have no network, and runc fibers have loopback alone, so a workload on those backends cannot call out. Outbound access should fit fiberd's backend interfaces, with the host owning the rule and each backend owning how a fiber attaches.

  • Add an optional backend interface for egress, in the same shape as WorkspaceHolder, and refuse a grant that needs egress on a backend without it.
  • Add a grant field for what a fiber may reach, by address and port, and by hostname.
  • Run the egress path as a separate per-grant process with no capabilities, its own cgroup and its own filter, not inside fiberd.
  • Always refuse loopback, link-local addresses, the home's own addresses and the node, whatever the grant allows.
  • Refuse all traffic from a pooled sandbox until Bind names its fiber.
  • Attach gVisor first, through --network-proxy-path, so ordinary programs need no proxy settings. That needs a runsc bump, a network namespace entry in the bundle and a template rewarm. Prove it across runsc restore first, and fall back to a namespace per fiber if it fails.
  • Add no step to Clone beyond what the attach needs, and measure that cost.
  • Cover the interface, the refusals and a restored fiber in the conformance suite, and record which backends offer egress in the design docs.
Lingua principale
Go
Stelle
5
Fork
5
Merge medio
15h 27m
PR unite (30g)
41

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 Azure/fiberd

Tutte le issue di Azure/fiberd

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.