Closed williamohara closed 2 years ago
Stripping a path prefix is not supported by Kratos. You should instead strip the prefix in your ingress (for nginx there seem to be multiple options).
ok - its funny - I set up Kratos some time ago on previous versions this exact same way - did this change - or was it a bug that was allowing me to do so.
I configured my nginix to run Kratos off of root and my UI against /ui/
now i am getting a redirect loop
I will say this one is closed though and open another one if i can't figure it out
Preflight checklist
Describe the bug
Using Nginx running on k8.
Ingress config sets path /auth/ to go to kratos-public
when I hit
https://mySubDomain.myDomain.com/auth/self-service/login/browser?aal=&refresh=&return_to=
I get a404 page not found
from kratos router see log belowwhen i take the path out of config and set ingress to go to kratos-public directly from "/" it works - it responds with a flow UI url and a valid flowid param
Reproducing the bug
set up nginx on kubernetes using helm set up kratos on kubernetes using helm - config setting serve.public.base_url to
https://mySubDomain.myDomain.com/auth/
set up ingress to route traffic with /auth/ path to kratos-public enterhttps://mySubDomain.myDomain.com/auth/self-service/login/browser?aal=&refresh=&return_to=
into browsernotice 404 from kratos expect to see redirect to login ui_url
Relevant log output
Relevant configuration
Version
10.0.0
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Kubernetes with Helm
Additional Context
when i take the path out of config and set ingress to go to kratos-public directly from "/" it works - it responds with a flow UI url and a valid flowid param