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

Plugin installer proxy not working properly for HTTPS URLs #15581

Closed
timroes opened this issue Dec 13, 2017 · 0 comments · Fixed by #15588
Closed

Plugin installer proxy not working properly for HTTPS URLs #15581

timroes opened this issue Dec 13, 2017 · 0 comments · Fixed by #15588
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team

Comments

@timroes
Copy link
Contributor

timroes commented Dec 13, 2017

When specifying an http_proxy for installing a plugin and you try to install a plugin via HTTPS, you will receive an error:

Error: Client request error: socket hang up
Plugin installation was unsuccessful due to error "Client request error: socket hang up"

This is because the HTTP proxy package send to the proxy is actually build in a corrupt way.

If you e.g. are installing a plugin as follows:

https_proxy="http://192.168.178.50:808" bin/kibana-plugin install https://example.com/plugin.zip

the actual request to the proxy, will have the following HTTP content:

GET http://example.com:443/plugin.zip
Host: example.com:443

So as you can see even though it picks up the HTTPS-iness from the URL and uses port 443 (in the Host header and the URL) it will still write the http in front of the URL, thus failing, due to the mismatch of protocol and actual protocol spoken on that port.

This looks for me like an issue within the upstream library HttpProxyAgent, that generates that proxy request.

/cc @marius-dr

@timroes timroes added Team:Operations Team label for Operations Team bug Fixes for quality problems that affect the customer experience labels Dec 13, 2017
@timroes timroes self-assigned this Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant