Too many redirects

Hi, I am starting to experiment with new kibana plugin - version 1.29.0 - 7.10.2, but I am not able to set it up through reverse proxy. Direct connection to kibana works. Seems like basepath is not applied for some reason.

server.basePath: /MYPATH
server.rewriteBasePath: false

https://kibana.domain/MYPATH/logout?nextUrl=/logout?nextUrl=/logout?nextUrl=/logout?nextUrl=/logout?nextUrl=/logout?nextUrl=/…too many redirects

expected result:

Hi Peter, the basepath in ROR Kibana new platform has not been tested yet. Is this the only way you can implement your experiment? It requires some work to support it and it might take some time. We are in that period in which a new piece of software has just been given to the large public, so the team is already busy fixing bugs here and there all the time.

Ok so I’ll wait once it is functional.

1 Like

Reminder pls still not functional in 1.34 version, thank you.

1 Like

Thanks @peter.babik for pinging, this is actually under development at the moment

Hi, we try 1.38 and still https://kibana.domain/poc-ror/logout?nextUrl=%2Flogout%3FnextUrl%3D%2Flogout%3FnextUrl%3D%252Flogout%253FnextUrl%253D%25252Flogout%25253FnextUrl%25253D%2525252Flogout%2525253FnextUrl%2525253D%252525252Flogout%252525253FnextUrl%252525253D%25252525252Flogout%25252525253FnextUrl%25252525253D%2525252525252Flogout%2525252525253FnextUrl%2525252525253D%252525252525252Flogout%252525252525253FnextUrl%252525252525253D%25252525252525252Flogout%25252525252525253FnextUrl%25252525252525253D%2525252525252525252Flogout%2525252525252525253FnextUrl%2525252525252525253D%252525252525252525252Flogout%252525252525252525253FnextUrl%252525252525252525253D%25252525252525252525252Flogout%25252525252525252525253FnextUrl%25252525252525252525253D%2525252525252525252525252Flogout%2525252525252525252525253FnextUrl%2525252525252525252525253D%252525252525252525252525252Flogout%252525252525252525252525253FnextUrl%252525252525252525252525253D%25252525252525252525252525252Flogout%25252525252525252525252525253FnextUrl%25252525252525252525252525253D%2525252525252525252525252525252Flogout%2525252525252525252525252525253FnextUrl%2525252525252525252525252525253D%252525252525252525252525252525252Flogout%252525252525252525252525252525253FnextUrl%252525252525252525252525252525253D%25252525252525252525252525252525252F

@jony thanks for reporting, this is supposed to work as of today. @Dzuming recently worked on this as well, so he can help you best!

Hello @jony

Thanks for the message. Could you send your reverse proxy settings? Are you able to check if your settings work as expected with kibana without ROR plugin installed?

Are you able to check if your reverse proxy works properly when kibana handles the rewrite base path via
server.rewriteBasePath: true flag ? In the case of Nginx, the config should look like when server.rewriteBasePath: true

location ~ / {
    proxy_pass http://localhost:5601; // Your proxy server url

we use apache.
Our configuration:

<Proxy balancer://poc-ror>
    BalancerMember  https://ourkibananode1:5698 route=server-1 loadfactor=1 ping=10 keepalive=On connectiontimeout=10 min=0 max=1500 smax=5 retry=2 timeout=300 ttl=5
    BalancerMember  https://ourkibananode2:5698 route=server-2 loadfactor=1 ping=10 keepalive=On connectiontimeout=10 min=0 max=1500 smax=5 retry=2 timeout=300 ttl=5
    ProxySet lbmethod=byrequests stickysession=ROUTEID nofailover=Off

RewriteRule ^/poc-ror$ /poc-ror/ [R,L]
RewriteRule ^/poc-ror/(.*)  balancer://poc-ror/$1 [NC,QSA,P]

This configuration works well with ROR Enterprise-1.28.2-pre1_es7.8.0

Thanks for providing an apache configuration. I will check why it’s not working.

Any news?
Can you reproduce our problem?
Do you need more information from us?

Hi, sorry for the delay. We could reproduce this issue and fix it. It’s in a code review yet, when we merge it, I hope for a few days, i will prepare a prerelease build and send it to you

Hi, when can we expect the prerelease?

Hi, we are close to the finish a review of this task. I’m sure we will be able to send you a prerelease version tomorrow or on Friday