Oauth2-proxy: returning 500 error when trying to access through Web-ui

1.9k views Asked by At

I have a web-ui, oauth2-proxy and Keycloak running a as Kubernetes apps; web-ui and oauth2 are behind the ingress-nginx and keycloak is exposed through NodePort.

These are the endpoints I'm using:

  • web-ui: https://ui.mydomain.uk.local
  • oauth2: https://ingress.mydomain.uk.local/oauth2
  • keycloak: http://ingress.mydomain.uk.local:8080

If I use https://ingress.mydomain.uk.local/oauth2/start I get the keycloak login page but targeting the web-ui, ends up with 500 error. I cannot copy (and paste) from the environment I'm running the actual code, but here is the screenshots of my configs:

oauth2-proxy deployment:

enter image description here

oauth2-proxy Ingress:

enter image description here

web-ui Ingress:

enter image description here

When point to https://ui.mydomain.uk.local, looks like it's actually hitting the oauth2-proxy:

enter image description here

but ends up with 500 in the end. Below is the log from ingress-controller:

enter image description here

Can anyone spot what I'm doing wrong or missing from my configuration? I tried to search the internet as much as I could but none of the suggestions actually helped. Could anyone give me a bit of hands please? Any help will be really appreciated.

0

There are 0 answers