OSC / ondemand

Supercomputing. Seamlessly. Open, Interactive HPC Via the Web
https://openondemand.org/
MIT License
291 stars 107 forks source link

Avoid HTTP 400 Bad Request by configuring request header limits #3940

Open tachylatus opened 1 week ago

tachylatus commented 1 week ago

Users sometimes experience HTTP 400 due to request headers exceeding server limit, typically when the cookie grows beyond 8190 bytes.

Specifically when using OIDC, it has been suggested, in issue #492, to adjust OIDCStateMaxNumberOfCookies.

Instead, I propose we make it easier to configure and increase server limits for both apache and per-user nginx (pun).

Currently, you can do the following to increase the limits from 8k to 32k:

tachylatus commented 1 week ago

Also related:

johrstrom commented 1 week ago

Yea I think we could add a config for LimitRequestFieldSize.