Redirect Problem with Keycloak, Traefik, and Kubernetes
Keycloak “Invalid redirect_uri” behind Caddy, Traefik, and k3s – a Debugging Journey When all you get after a Keycloak login is “Invalid parameter: redirect_uri”, the problem rarely lies with Keycloak itself. In my case, the investigation led through three proxy layers down to a SNAT rule in the Kubernetes network. This post documents the debugging path from error message to solution. Starting Point The application is a Spring Boot 3 web project connected to a self-hosted Keycloak via OAuth2/OIDC. The infrastructure looks like this: ...