Skip to content

Configure http header size and limit #5277

@smyrick

Description

@smyrick

Is your feature request related to a problem? Please describe.

In NodeJS, which also means Apollo Gateway, I can set the max HTTP header size and limit (see --max-http-header-size). Apollo Router under the hood uses Hyper which also has some options to configure those limits but I do not have access to them in Router user space or configuration so we are stuck with the defaults of the underlying engine

Describe the solution you'd like

I would like to be able to configure the max http header size and limits from either the command line or YAML

server: # maybe some new top level section for just HTTP server stuff?
  http_header_size: 32kb
  http_header_limit: 250

Note: This would probably also be a better place for http_max_request_bytes

Describe alternatives you've considered

If I wanted to set the limits to a lower value I could implement a Rhai or Coprocessor to check the HTTP request info but if I wanted to go higher, like 32kb, then I cannot as the default is set to 16kb as controlled by Hyper.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions