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

HTTPS and authorization #19

Open
Frog-Lover-Antony opened this issue Aug 1, 2023 · 1 comment
Open

HTTPS and authorization #19

Frog-Lover-Antony opened this issue Aug 1, 2023 · 1 comment

Comments

@Frog-Lover-Antony
Copy link

I am trying to set up a local caching proxy for a debian-based commercial system. The official repository is HTTPS only and requires basic auth.
I add a /etc/apt/auth.conf.d/ file with credentials on the client machine so that apt could communicate with the server. Using basic auth URI (https://LOGIN:PASSWORD@apt.domain.name/os) also works with apt/wget/curl/browser.

Starting apt-proxy in docker with docker run -it --rm --name=apt-proxy -p 3142:3142 soulteary/apt-proxy --debian=https://LOGIN:PASSWORD@apt.domain.name/os/ shows no apparent errors during mirror benchmarking but running http_proxy=http://apt.local:3142 apt-get -o Debug::pkgProblemResolver=true -o Debug::Acquire::http=true update on client machine results in
Server log:

2023/08/01 10:34:57 {ip} "CONNECT //apt.domain.name:443 HTTP/1.1" (Bad Gateway) 0 SKIP 1.274456ms
2023/08/01 10:34:57 http: proxy error: unsupported protocol scheme ""
2023/08/01 10:34:57 http: superfluous response.WriteHeader call from github.com/soulteary/apt-proxy/internal/server.(*responseWriter).WriteHeader (proxy.go:120)

Is it a simple client configuration problem or there actually aren't easy ways to implement such a thing?

@Frog-Lover-Antony
Copy link
Author

apt-proxy does not seem to work with https at all, I'm not sure why it says otherwise here.

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

No branches or pull requests

1 participant