dotnet / dotnet/install-scripts
install-dotnet.ps1 fails behind authenticated proxy: credentials not applied from ProxyAddress
- Vorherrschende Sprache
- PowerShell
- Sterne
- 213
- Forks
- 120
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne in install-dotnet.ps1 bei dem Code, der HttpClientHandler und WebProxy aus ProxyAddress erstellt. Verfolge, wie Proxyanmeldeinformationen und Umgebungsvariablen verarbeitet werden, und führe dann die Anfrage über einen authentifizierten Proxy erneut aus. Fertig ist die Aufgabe, wenn sich Anfragen erfolgreich authentifizieren und nicht mehr mit 407 Proxy Authentication Required fehlschlagen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- powershell
- Bereich
- networking
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100