From 5f2e15497970e96ad69de77b0436b172493da9d3 Mon Sep 17 00:00:00 2001 From: spektr Date: Wed, 18 Nov 2026 20:34:47 +0100 Subject: [PATCH] =?UTF-8?q?M8:=20502=20auf=20/oauth2/callback=20fixen=20?= =?UTF-8?q?=E2=80=94=20Proxy-Puffer=20in=20location=20/oauth2/=20erhoehen?= =?UTF-8?q?=20(big=20Set-Cookie=20vom=20IAP)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "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 --- .../llm-server/ai/GNAI-023-PLAN_GPT-Researcher-IAP.md | 6 ++++++ .../roles/reverse_proxy_research_vhost/defaults/main.yml | 6 ++++++ 2 files changed, 12 insertions(+) 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;