Keycloak Kubernetes installation using port-forwarding fails as https is trying to be used when accessing Admin UI

Hi,

I have installed Keycloak 20.0.1 in a Kubernetes cluster and have everything working fine when I access the Admin UI using SSL and a fully qualified domain name. I have set the KC_PROXY env var to passthrough.

When I try to port-forward one of the Keycloak pods and then access the UI using http://localhost:/auth and I click on the Admin console I just get a loading spinner and in the browser console I see that it is trying to use https in the login flow which seems wrong. The realm settings have SSL for External Requests which means SSL is not enabled for localhost.

This is the error: Failed to load resource: An SSL error has occurred and a secure connection to the server cannot be made. and this is the url failing https://localhost:59337/auth/realms/master/protocol/openid-connect/3p-cookies/step1.html

Not sure if this older issue - Keycloak 20.0.1 install on server w/o GUI - is the same problem or not but would appreciated any help.

Thanks.

1 Like