Windows sandbox blocks direct TCP connection despite hostname and IP allowlist

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

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ệ
powershell, python
Lĩnh vực
networking, security

Hướng nghiên cứu

Start by reading the Windows sandbox networking policy and local proxy host-filter code; the issue does not name source files or tests. Compare the direct PowerShell TCP failure with curl succeeding under the same hostname and IP allowlist, then trace how each connection is handled. Done means the documented policy permits the direct connection and a regression test covers the reported case.

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

Mô tả

area:permissions area:platform-windows
Describe the bug

Copilot CLI  1.0.109  on Windows blocks a direct TCP connection to an internal Nexus server, even though outbound and local networking are enabled and both its hostname and resolved IP are allowed.

The connection fails with  SocketErrorCode: AccessDenied , Windows error  10013 , for  <ip_address>:443 . Maven also reports  Permission denied: getsockopt  when resolving dependencies. Adding the IP and restarting the CLI did not resolve it.

Affected version

Copilot CLI  1.0.109  on Windows

Steps to reproduce the behavior
  1. Enable the sandbox and allow outbound and local networking.
  2. Add the Nexus hostname and its resolved IP to allowed hosts.
  3. Have Copilot run a PowerShell TCP connection to the hostname on port 443:
$client = New-Object System.Net.Sockets.TcpClient
try {
    $client.ConnectAsync('nexus.mycompany.com', 443).Wait(10000)
} finally {
    $client.Dispose()
}
Expected behavior

The direct TCP connection succeeds under the displayed policy.

Additional context

curl  to the same HTTPS hostname succeeds from the sandbox. The effective policy lists both the hostname and IP in allow layer 1, says outbound and local networking are allowed, and identifies the host filter as the local proxy.

Ngôn ngữ chính
Python
Star
11.5k
Fork
2k
Merge trung bình
6 giờ 34 phút
Pull request đã merge (30 ngày)
3

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

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 github/copilot-cli

Tất cả issue của github/copilot-cli

Issue tương tự

Thêm issue về Python

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.