-
Notifications
You must be signed in to change notification settings - Fork 118
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
View logs if spring-cloud-data-flow-server is running behind a reverse proxy is not possible #1994
Comments
@klopfdreh Is your reverse proxy configured to add headers: |
Yes, but the way the API is implemented the request does not respect any headers but uses only the domain of the backend. See the PR for more details. |
Have you tried |
If you have multiple load-balancers en-route the addition of |
I am going to check it out and give feedback. 👍 |
Hey @corneil, I checked both server settings, now. With |
Can the ingress on k8s be configured to leave the x-forwarded headers in place instead of replacing with the cluuster dns? |
The issue here is that the Angular frontend does not send the header to tell the backend to use the scheme / domain / port from the reverse proxy. (No To my understanding the headers must be added, or we can use my code to adjust the url to fit the one of the frontend without any infrastructure changes. |
@klopfdreh |
@klopfdreh This may apply kubernetes/ingress-nginx#5701 (comment) |
I am going to ask if we can apply those changes and report back. 👍 But maybe it would be nice to have this option as well - in this case (with my changes) no reverse proxy changes are required. |
@klopfdreh we are going to push this to the next release as we are still not sure which direction we want to go and we are starting the release process in the next 1-2 days. Let's see how things are once the changes are applied (if that is possible). Thank you for your patience. |
Hey @onobc - no problem - we are also having a look at this issue and try to adjust some things in our infra. 👍 |
I know that in normal cases if you configure the backend correctly (tomcat) and apply the header in the reverse proxy, the client should translate the response _links to the reverse-proxy domain However, I asked our infra team and it seems that they can set the header but be able not fill them. So I kindly ask if there is a way to implement this feature as sort of compatiblitiy mode for reverse proxies which are not able to set those headers? So in the settings a toggle and if you activate it the header all of the _link urls is translated the way I implemented it. That would be awesome. |
Hi @klopfdreh , Thanks, |
Hey @onobc - no problem - almost done. 😄 |
@onobc - done 👍 - just have a look at the PR. |
Wow @klopfdreh - that was fast. I hope that I did not mislead you but we are currently in the process of releasing 2.11.3 (UI 3.4.3) and will look at this once the release is complete. |
Hey @onobc - no problem - I am just so glad that this feature is accepted. 👍 |
Description:
If you use spring-cloud-data-flow-server behind a reverse proxy it is not possible to view the logs within the ui as the "_links" are calculated from the backend with its own domain name.
Release versions:
2.11.2
Custom apps:
N/A
Steps to reproduce:
Use spring-cloud-data-flow-server behind a reverse proxy.
Screenshots:
N/A
Additional context:
PR in SCDF UI will be provided to fix this issue
The text was updated successfully, but these errors were encountered: