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

Aperta
#111 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
56/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go, linux
Ambito
backend, security

Direzione di ricerca

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.

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

Descrizione

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.

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.