dotnet / dotnet/install-scripts
install-dotnet.ps1 fails behind authenticated proxy: credentials not applied from ProxyAddress
- Lenguaje dominante
- PowerShell
- Estrellas
- 213
- Forks
- 120
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
The install-dotnet.ps1 script fails behind authenticated proxy because it does not apply proxy credentials, even when they are provided via the ProxyAddress parameter.
The script constructs its own HttpClientHandler and WebProxy object. It does not extract credentials from the proxy URL or use those set in environment variables. As a result, it sends unauthenticated requests to the proxy, resulting in 407 Proxy Authentication Required errors. Failure logs show that the ProxyAddress with credentials is passed correctly, but the script still receives a 407. Web proxy logs confirm the request reaches the proxy without credentials, indicating that authentication details are not being applied.
Please find error screenshot for reference.
**Environment Context**
The runners are in a restricted network without direct internet access, so all outbound traffic must go through an authenticated proxy.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza en install-dotnet.ps1, en el código que construye HttpClientHandler y WebProxy a partir de ProxyAddress. Sigue cómo se gestionan las credenciales del proxy y las variables de entorno, y después reproduce la solicitud a través de un proxy autenticado. Se considera terminado cuando las solicitudes se autentican correctamente y dejan de fallar con 407 Proxy Authentication Required.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- powershell
- Área
- networking
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 48/100