SourceLabOrg/kafka-webview

Running Kafka Webview behind AWS ALB

sarunask opened this issue · 4 comments

We are running Kafka Webview behind AWS ALB.
Network setup looks like this:
HTTPS -> AWS ALB -> HTTP -> Kafka-Webview

Issue is that we get after login such URL's, which are incorrect ones:
http://kafka-webviews.domain.com:443/view?UserId=2&MenuShowUserConfig=true

It should be using HTTPS instead of HTTP. How to force Kafka-Webview to run correctly in such setup?

Crim commented

I believe you can configure the requireSsl field to true in your configuration file.

Basically this line.

Let me know if that solves it for you!

Not quite right, this option would enable SSL protocol on Kafka webview itself. I need to use plain HTTP on 8080 for Kafka Webview and use HTTPS only on ALB.
Main goal is:
HTTPS -> AWS ALB -> HTTP -> Kafka-Webview

Is there any option not to change/overwrite URL schema ?

Crim commented

Sorry for the super delayed response.

So using this as a reference is it possible to add the following option to your configuration yaml:

server
  use-forward-headers: true

Yes this one helped - thank you :)