diff --git a/docs/platform/llm-server/ai/GNAI-023-PLAN_GPT-Researcher-IAP.md b/docs/platform/llm-server/ai/GNAI-023-PLAN_GPT-Researcher-IAP.md index 11e7730..ddd7d71 100644 --- a/docs/platform/llm-server/ai/GNAI-023-PLAN_GPT-Researcher-IAP.md +++ b/docs/platform/llm-server/ai/GNAI-023-PLAN_GPT-Researcher-IAP.md @@ -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. diff --git a/proxmox/lxc/ct-103-reverse-proxy/ansible/roles/reverse_proxy_research_vhost/defaults/main.yml b/proxmox/lxc/ct-103-reverse-proxy/ansible/roles/reverse_proxy_research_vhost/defaults/main.yml index b7c1951..1a85e77 100644 --- a/proxmox/lxc/ct-103-reverse-proxy/ansible/roles/reverse_proxy_research_vhost/defaults/main.yml +++ b/proxmox/lxc/ct-103-reverse-proxy/ansible/roles/reverse_proxy_research_vhost/defaults/main.yml @@ -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;