Refuse a handoff resume under a certificate the fiber does not pin

Abierto
#111 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
56/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go, linux
Área
backend, security

Línea de trabajo

Start with docs/design/handoff.md and docs/protocol.md to understand the handoff flow, then trace the relevant host and core code from the unit tests in pkg/runtime/host and pkg/core. Run those tests and inspect tests/integration/proc/handoff_linux_test.go for the certificate renewal case. Done means mismatched certificates are refused with a clear cause on both homes, pinned certificates still resume or attach, and the docs describe how to discard the session and create a new fiber.

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

Descripción

enhancement

A handoff fiber pins the client certificate its Clone arrived under. After the caller renews that certificate over the same key, fiberd still admits the caller, so a Clone that resumes or attaches the fiber succeeds and the caller's TLS handshake to the fiber then fails with nothing to explain it.

  • A Clone that would resume or attach a handoff fiber under another client certificate than the fiber pins is refused before the fiber is touched.
  • The refusal names the cause, so a caller can tell a stale pin from a wrong caller.
  • A Clone under the pinned certificate resumes and attaches as it does today.
  • The check holds on the home that parked the fiber and on a home the session moved to.
  • A caller can still discard the session and create a fiber under the renewed certificate.
  • docs/design/handoff.md and docs/protocol.md state the refusal and the way out.
  • Rows in the unit tests of pkg/runtime/host and pkg/core, and a renewal row in tests/integration/proc/handoff_linux_test.go.

Follows #105, which binds a grant to the caller's key.

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.