Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no basic auth header when using proxy v2.1.300-preview1-62608--07 #6939

Closed
livarcocc opened this issue May 16, 2018 · 4 comments
Closed

no basic auth header when using proxy v2.1.300-preview1-62608--07 #6939

livarcocc opened this issue May 16, 2018 · 4 comments

Comments

@livarcocc
Copy link

From @mpluhar on May 16, 2018 1:12

In the version v2.1.300-preview1-62608--07 a http_proxy environment variable with the format

http://user:pass@host:port

is not being picked up correctly. Only the host and port is actually being used when running a dotnet restore or dotnet build
I ran a tcpdump to confirm this.

Same set up works fine in v2.1.100

Copied from original issue: dotnet/sdk#2248

@livarcocc
Copy link
Author

I am sorry, I don't quite follow what you mean by this. Can you give us more details? What are you trying to do here? Is this for a restore feed?

@livarcocc
Copy link
Author

From @mpluhar on May 16, 2018 19:19

Sorry, I was a bit busy yesterday and I thought I get the request logged.

Here is some more detail:
I am using an vsts-agent docker image with .NET Core SDK 2.1.101 (runtime 2.0.6) for building .net Core projects. When executing a 'dotnet build' we restore the dependencies for the project (one feed pointing to api.nuget.org). We have to use an HTTP proxy with basic authentication to connect to the Internet.
I use environment variables (http_proxy and https_proxy) to pass on the proxy settings to dotnet. This works fine in the SDK 2.1.101.

We installed the SDK 2.1.300-preview1 on the same build agent to build for .NET Core 2.1 following the same setup using environment variables.. While I can confirm that the proxy is being used when executing a dotnet build, I cannot see any basic auth headers in the network traffic. The result is that fetching the dependencies fails.

@livarcocc
Copy link
Author

Got it. Thanks for the extra details. Given that restore is the piece that should be using the headers with the proxy, I am going to move this issue to NuGet.

@nkolev92
Copy link
Member

I think this is a duplicate of #6978.

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants