This repository was archived by the owner on Jun 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
This repository was archived by the owner on Jun 17, 2024. It is now read-only.
*1119809 upstream sent too big header while reading response header from upstream / 502 Bad Gateway #79
Copy link
Copy link
Open
Description
I have deployed EasyAuthForK8s via helm with the following options:
helm install nginx-ingress ingress-nginx/ingress-nginx --set rbac.create=true --set controller.config.large-client-header-buffers="8 32k"However, in the nginx logs I get this massive error after authentication, which results in the user seeing "502 Bad Gateway".
Previously I was using oauthproxy2 whose solution to this issue was to enable Redis caching. I know the client header buffer increase should take care of this issue - but it does not appear to be sufficient.
2022/09/08 15:52:33 [error] 5393#5393: *1119809 upstream sent too big header while reading response header from upstream, client: 10.244.2.1, server: redacted.hostname, request: "GET /login?next=https%3A%2F%2Fredacted.hostname%2F%255Clogin%3Fnext%3Dhttps%253A%252F%252Fredacted.hostname%252F%25255Clogin%253Fnext%253Dhttps%25253A%25252F%25252Fredacted.hostname%25252F%2525255Clogin%25253Fnext%25253Dhttps%2525253A%2525252F%2525252Fredacted.hostname%2525252F%252525255Clogin%2525253Fnext%2525253Dhttps%252525253A%252525252F%252525252Fredacted.hostname%252525252F%25252525255Clogin%252525253Fnext%252525253Dhttps%25252525253A%25252525252F%25252525252Fredacted.hostname%25252525252F%2525252525255Clogin%25252525253Fnext%25252525253Dhttps%2525252525253A%2525252525252F%2525252525252Fredacted.hostname%2525252525252F%252525252525255Clogin%2525252525253Fnext%2525252525253Dhttps%252525252525253A%252525252525252F%252525252525252Fredacted.hostname%252525252525252F%25252525252525255Clogin%252525252525253Fnext%252525252525253Dhttps%25252525252525253A%25252525252525252F%25252525252525252Fredacted.hostname%25252525252525252F%2525252525252525255Clogin%25252525252525253Fnext%25252525252525253Dhttps%2525252525252525253A%2525252525252525252F%2525252525252525252Fredacted.hostname%2525252525252525252F%252525252525252525255Clogin%2525252525252525253Fnext%2525252525252525253Dhttps%252525252525252525253A%252525252525252525252F%252525252525252525252Fredacted.hostname%252525252525252525252F%25252525252525252525255Clogin%252525252525252525253Fnext%252525252525252525253Dhttps%25252525252525252525253A%25252525252525252525252F%25252525252525252525252Fredacted.hostname%25252525252525252525252F%2525252525252525252525255Clogin%25252525252525252525253Fnext%25252525252525252525253Dhttps%2525252525252525252525253A%2525252525252525252525252F%2525252525252525252525252Fredacted.hostname%2525252525252525252525252F%252525252525252525252525255Clogin%2525252525252525252525253Fnext%2525252525252525252525253Dhttps%252525252525252525252525253A%252525252525252525252525252F%252525252525252525252525252Fredacted.hostname%252525252525252525252525252F%25252525252525252525252525255Clogin%252525252525252525252525253Fnext%252525252525252525252525253Dhttps%25252525252525252525252525253A%25252525252525252525252525252F%25252525252525252525252525252Fredacted.hostname%25252525252525252525252525252F%2525252525252525252525252525255Clogin%25252525252525252525252525253Fnext%25252525252525252525252525253Dhttps%2525252525252525252525252525253A%2525252525252525252525252525252F%2525252525252525252525252525252Fredacted.hostname%2525252525252525252525252525252F%252525252525252525252525252525255Cfavicon.ico HTTP/2.0", upstream: "http://10.244.0.33:5000/\login?next=https%3A%2F%2Fredacted.hostname%2F%255Clogin%3Fnext%3Dhttps%253A%252F%252Fredacted.hostname%252F%25255Clogin%253Fnext%253Dhttps%25253A%25252F%25252Fredacted.hostname%25252F%2525255Clogin%25253Fnext%25253Dhttps%2525253A%2525252F%2525252Fredacted.hostname%2525252F%252525255Clogin%2525253Fnext%2525253Dhttps%252525253A%252525252F%252525252Fredacted.hostname%252525252F%25252525255Clogin%252525253Fnext%252525253Dhttps%25252525253A%25252525252F%25252525252Fredacted.hostname%25252525252F%2525252525255Clogin%25252525253Fnext%25252525253Dhttps%2525252525253A%2525252525252F%2525252525252Fredacted.hostname%2525252525252F%252525252525255Clogin%2525252525253Fnext%2525252525253Dhttps%252525252525253A%252525252525252F%252525252525252Fredacted.hostname%252525252525252F%25252525252525255Clogin%252525252525253Fnext%252525252525253Dhttps%25252525252525253A%25252525252525252F%25252525252525252Fredacted.hostname%25252525252525252F%2525252525252525255Clogin%25252525252525253Fnext%25252525252525253Dhttps%2525252525252525253A%2525252525252525252F%2525252525252525252Fredacted.hostname%2525252525252525252F%252525252525252525255Clogin%2525252525252525253Fnext%2525252525252525253Dhttps%252525252525252525253A%
My questions:
- The cookie AzAD.EasyAuthForK8s is very long, is that likely the issue? (711 characters)
- Is there anything other than controller.config.large-client-header-buffers="8 32k" which will circumvent this issue?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working