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

Incorrect ssl redirect #7158

Open
panda01 opened this issue May 9, 2016 · 8 comments
Open

Incorrect ssl redirect #7158

panda01 opened this issue May 9, 2016 · 8 comments
Labels
bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team

Comments

@panda01
Copy link
Contributor

panda01 commented May 9, 2016

If you try and access kibana from outside of localhost with ssl enabled, say from a virtualBox, it'll try to redirect you to localhost, which results in an error.

To get around this error run kibana with the --no-ssl flag

@panda01 panda01 added the bug Fixes for quality problems that affect the customer experience label May 9, 2016
@panda01
Copy link
Contributor Author

panda01 commented May 9, 2016

bad-redirect

@panda01 panda01 changed the title incorrect ssl redirect Incorrect ssl redirect May 9, 2016
@lifeofguenter
Copy link

I am having a similar issue. The problem lies here:

E.g. if I set kibana to "bind" to 0.0.0.0 it will redirect me to https://0.0.0.0:5061, the redirect mechanism should not use that config directive, but instead redirect according to the HTTP_HOST value that is being sent by the client (which would either be the IP, or if you are using nginx as reverse proxy setup with a hostname, the hostname) - thus doing a "correcter" redirect.

@thomasneirynck
Copy link
Contributor

The server.host setting needs to be set to a non-loopback address. So generally, you would use a public facing IP or DNS for that. This then would also have to match the SSL-cert. So for VM deployments, usually some sort of DNS resolution can be set up to handle this case.

@averrips
Copy link

I'm running into this using a Docker deployment at the moment. By adding an extra Docker host (data.example.com to 0.0.0.0) I can set server.host to data.example.com. However, the port is still added to the end of the redirect url. http://data.example.com is now redirecting me to https://data.example.com:5601 instead of https://data.example.com/.

What would be the disadvantage of a redirect to the same HTTP_HOST, instead of using server.host? This seems to be the most simple solution to me, but maybe I'm missing something.

@samling
Copy link

samling commented Jan 12, 2018

I'm also running into this issue using a Docker deployment. I get redirected to https://0.0.0.0:5601 when enabling SSL and binding to 0.0.0.0. Has anyone found a workaround or fix for this yet?

@thomasriley
Copy link

Would be helpful if Kibana used server.name as the host to redirect on, unless it could simply look at the request headers and redirect to the correct host set here.

If you run any sort of load balancer in front of Kibana, such as an AWS ELB, you can't set the host that Kibana will be available at in server.host since Kibana binds to the value set here.

@c4milo
Copy link

c4milo commented Mar 21, 2018

bind address and server.host address should be 2 parameters not 1, that's why this issue is happening. We cannot bind to 0.0.0.0 because it will trigger a redirect to 0.0.0.0 🤷‍♂️

@c4milo
Copy link

c4milo commented Aug 18, 2018

If Kibana exposes address and uri from Hapi server.options. We should be able to use Kibana in an enterprise environment without doing weird hacks.

https://github.com/hapijs/hapi/blob/master/API.md#server.options

@tylersmalley tylersmalley added 1 and removed 1 labels Oct 11, 2021
@exalate-issue-sync exalate-issue-sync bot added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort labels Oct 12, 2021
@tylersmalley tylersmalley removed loe:small Small Level of Effort impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. EnableJiraSync labels Mar 16, 2022
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

No branches or pull requests

10 participants