Windows sandbox blocks direct TCP connection despite hostname and IP allowlist

Abierto
#5,580 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
powershell, python

Línea de trabajo

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.

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

Descripción

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.

Lenguaje dominante
Python
Estrellas
11.5k
Forks
2k
Merge medio
6 h 34 min
PR fusionados (30 d)
3

Preparar el entorno

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

Todos los issues de github/copilot-cli

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.