<p>When I try to send a request through my NGINX ingress with headers larger than 4k, it returns a 502 error:</p>
<pre><code>[error] 39#39: *356 upstream sent too big header while reading response header from upstream, 
    client: &lt;ip&gt;,
    server: &lt;server&gt;, 
    request: &quot;GET /path/ HTTP/1.1&quot;, 
    subrequest: &quot;/_external-auth-Lw&quot;, 
    upstream: &quot;&lt;uri&gt;&quot;, 
    host: &quot;&lt;host&gt;&quot;
[error] 39#39: *356 auth request unexpected status: 502 while sending to client, 
    client: &lt;ip&gt;, 
    server: &lt;server&gt;, 
    request: &quot;GET /path/ HTTP/1.1&quot;, 
    host: &quot;&lt;host&gt;&quot;
</code></pre>
<p>I've followed instructions about how to allegedly resolve this issue by configuring the <code>proxy-buffer-size</code> in the ingress controller (<code>nginx.ingress.kubernetes.io/proxy-buffer-size: &quot;16k&quot;</code>), but it doesn't seem to work. The only thing that I can think of, is that it has something to do with the <code>proxy-buffer-size</code> of the subrequest, which doesn't seem to get set.</p>

kellanburket
<p>The proxy_buffering header wasn't being set on the /_external-auth-Lw endpoint in the NGINX config. Issue has been resolved as of v. 0.14.0.</p>
