Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

native2: client doesn't verify the host, but docs/embed.md says it does

Đang mở
#191 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
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
swift
Lĩnh vực
authentication, security

Hướng nghiên cứu

Read DesktopHost/Server.swift:148 and compare its peer check with the former client check in native/sources/client/client.swift; review the current client entry points named in the issue: the client CLI, desktop-tools-mcp, and DesktopAppLink. Check docs/embed.md:24 against the intended behavior. Done means either host signature verification is restored on the client side or the documentation explains why it was deliberately dropped.

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

Mô tả

In native2 only the host checks its peer: DesktopHost/Server.swift:148 admits a client when Peer.satisfies matches the team and exact identifier. Neither the client CLI, desktop-tools-mcp nor DesktopAppLink checks the host's signature before sending requests; they exchange only a version hello.

The Peekaboo-based client did check (native/sources/client/client.swift, trustedHostTeamIDs), and docs/embed.md:24 still says "the client verifies the host's team".

The risk is that a process at the socket path that isn't our host gets the agent's requests, and can lie about results.

Either:

  • add the reverse check: Peer(socket:) on the client side, requiring the host to be signed by the same team (as ownSigning() already does for the host), or
  • if dropping it was deliberate, update docs/embed.md to say so and why.

Found while updating the Desktop Tools write-up for native2 (checked at 0d89ab5).

Ngôn ngữ chính
Swift
Star
0
Fork
0
Merge trung bình
39 phút
Pull request đã merge (30 ngày)
144

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 githubnext/desktop-tools

Tất cả issue của githubnext/desktop-tools

Issue tương tự

Thêm issue về Swift

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.