Maximum Header Size Exceed
This article will cover how TSB and istio-proxy handle headers when forwarding from Istio ingress gateways or sidecars to applications.
Before you get started, make sure you:
✓ Familiarize yourself with TSB concepts
✓ Install the TSB environment. You can use TSB demo for quick install
✓ Completed TSB usage quickstart.
✓ Install sample application httpbin.
Request header size in Envoy (istio-proxy)
Envoy or istio-proxy can handle headers that are considerably larger. The default maximum request headers size for incoming connections is 60 KiB
In this case, it will not be an issue for the majority of applications, and the request headers that incoming connections will be proxied through istio-proxy. However, your application might have restrictions based on the configuration of the header size for each web server.
For example: In Spring Boot 2 and Gunicorn the default max header size is 8 KiB. You can override the default if needed.
Debug request headers size
For this experiment, you will need the httpbin sample application deployed in your cluster. You will perform two requests, one with a header size below the maximum and another one that exceeds the limit by the app container.