M8: 502 auf /oauth2/callback fixen — Proxy-Puffer in location /oauth2/ erhoehen (big Set-Cookie vom IAP)
"upstream sent too big header" -> proxy_buffer_size 32k / proxy_buffers 8 32k / proxy_busy_buffers_size 64k in der /oauth2/-Location (wie GNMON-000 M6). Verifiziert in generierter proxy_host/16.conf, site.yml idempotent changed=0. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -194,3 +194,9 @@ Internet → NPM (CT 103, 443) → auth_request-Subrequest an oauth2-proxy
|
||||
enthalten — Keycloak lehnt unbekannte Scopes ab (`invalid_scope`); der
|
||||
`groups`-Claim kommt über den `roles`-Scope-Mapper ins Token. Scope jetzt
|
||||
`openid email profile` (Redirect verifiziert: `scope=openid+email+profile`).
|
||||
|
||||
- **Befund 18.11. (502 auf /oauth2/callback):** `upstream sent too big header`
|
||||
— der IAP-302 trägt ein großes Set-Cookie (Session mit id/access/refresh
|
||||
token); nginx-Default-Puffer (4k/8k) reichen nicht. Fix: `proxy_buffer_size
|
||||
32k; proxy_buffers 8 32k; proxy_busy_buffers_size 64k` in `location /oauth2/`
|
||||
(derselbe Befund wie GNMON-000 M6 am mon-Host). Nach Fix idempotent deployt.
|
||||
|
||||
+6
@@ -29,6 +29,12 @@ reverse_proxy_research_advanced_config: |
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
# the IAP's callback 302 carries a big Set-Cookie (session with id/access/
|
||||
# refresh token); nginx default buffers (4k/8k) reject it with
|
||||
# "upstream sent too big header" -> 502 (same finding as GNMON-000 M6)
|
||||
proxy_buffer_size 32k;
|
||||
proxy_buffers 8 32k;
|
||||
proxy_busy_buffers_size 64k;
|
||||
}
|
||||
location = /oauth2/auth {
|
||||
internal;
|
||||
|
||||
Reference in New Issue
Block a user