I am running Keycloak 24.0.4 in prod mode (using
KC_PROXY=edge and KC_PROXY_HEADERS=xforwarded) behind Traefik 3.0.0 reverse proxy. Traefik is configured to provide HTTPS only, and forwards to Keycloak using unsecured HTTP as we are in a safe private docker network (the Traefik container and the Keycloak container are the sole containers attached to this network).
Everything works fine so far, but the docs say KC_PROXY=edge is deprecated by KC_PROXY_HEADERS=xforwarded, so I tried to remove
KC_PROXY=edge
and just keep
KC_PROXY_HEADERS=xforwarded
. Unfortunately, that de facto makes KC fail to start in prod mode, asking for TLS now! :-(
So the question is: How to tell KC that we're still in the edge case? Providing KC_PROXY_HEADERS=xforwarded (as the docs pretend to be the successor of KC_PROXY=edge) apparently is not enough to convince KC that it doesn't need TLS!