Keycloak Docker behind loadbalancer with https fails

前端 未结 2 1503
清歌不尽
清歌不尽 2021-01-05 06:04

I am trying to use clustered keycloak docker behind the A10 load balancer. I am trying access all the request by https from the client application. My issue is that the same

相关标签:
2条回答
  • 2021-01-05 06:30

    I know this is an older question, but I couldn't find a satisfying answer anywhere and I wanted to share my solution. This eventually worked for me in an AWS Environment with an Application Load Balancer:

    Run the keycloak docker container with the environment variable PROXY_ADDRESS_FORWARDING=true

    As seen in the keycloak docker documentation:

    When running Keycloak behind a proxy, you will need to enable proxy address forwarding.

    0 讨论(0)
  • 2021-01-05 06:35

    I don't know A10, but you have to ensure that it sets the request headers X-Forwarded-For and X-Forwarded-Proto. Then you have to configure Keycloak (Wildfly, Undertow) to work together with the SSL terminating reverse proxy (aka load balancer). See http://www.keycloak.org/docs/latest/server_installation/index.html#_setting-up-a-load-balancer-or-proxy for a detailed description.

    0 讨论(0)
提交回复
热议问题