Give fibers outbound network through a backend interface

Abierto
#124 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
28/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go, kubernetes, linux

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Go
Estrellas
5
Forks
5
Merge medio
15 h 27 min
PR fusionados (30 d)
41

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Azure/fiberd

Todos los issues de Azure/fiberd

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.