-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Description
Looks like we've just hit NodeJS limitation on the size of the Request-Line + headers (see #53464). That means we can't pass very long Kibana URLs to the server via query string parameter.
One of the possible solutions is to just switch to POST. Obviously the only benefit here is that we won't hit the limit since this URL won't be preserved anyway (cookie limit is even smaller). Unfortunately it's not super convenient since such custom HTML views don't have access to the core HTTP services (e.g. fetch service that would automatically add necessary xsrf headers).
Alternatively we can just decide on the client side whether URL fragment is already too long and not send it at all (e.g. if it's already bigger than the default limit of 2kb) - that'd be easier and safer. I'm leaning towards this solution.
Any thoughts @elastic/kibana-security?
Blocks: #68885