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

Đang mở
#111 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
56/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, linux
Lĩnh vực
backend, security

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
5
Fork
5
Merge trung bình
15 giờ 27 phút
Pull request đã merge (30 ngày)
41

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/fiberd

Tất cả issue của Azure/fiberd

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.