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
ssl.redirectHttpFromPort redirects statically to 0.0.0.0:<somePort> #24870
Comments
Pinging @elastic/kibana-operations |
@mat1010 Thanks for the bug report! For the suggested solution, I think we'll want to use Node's URL parser for extracting the host from the header. That may help handling any strange host edge cases we haven't thought about. |
@joshdover Thanks for looking into this. |
+1, this would be very useful. |
any news on that or we still forced to use a third-party solution? |
Pinging @elastic/kibana-platform (Team:Platform) |
@joshdover @rudolf , is anyone working on this? |
@abprash Feel free to pick this up 👍 this would be a good issue to start with contributing to Kibana. Let me know if I can help with anything. |
@rudolf , thanks! I'll work on it. |
Kibana version:
6.4.2
Elasticsearch version:
6.4.2
Server OS version:
Centos7
Browser version:
any
Browser OS version:
any
Original install method (e.g. download page, yum, from source, etc.):
Docker container: docker.elastic.co/kibana/kibana:6.4.2
Source from download page: https://artifacts.elastic.co/downloads/kibana/kibana-6.4.2-linux-x86_64.tar.gz
Describe the bug:
Using the builtin webserver in Kibana with a configured HTTP to HTTPs redirect leads to a redirect to the configured host ip in
server.host
instead of the original requested ip address / the hostname which has been used by the client.Steps to reproduce:
kibana.yml
Expected behavior:
Redirect should go to https://localhost:5602 - or whatever host / ip has been used by the client to access Kibana. Instead of
config.host
the target should berequest.headers.host
(without the port information)Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
The bug seems to be caused by the following part in
https_redirect_server.ts
:kibana/src/core/server/http/https_redirect_server.ts
Line 56 in 33b5de3
My proposal for the change would be the following:
Take the host header, strip the port and redirect the client to it
It could look like this
The text was updated successfully, but these errors were encountered: