HTTP Error 431 in Red Hat OpenShift Service Mesh 2 with too large HTTP header

Solution Verified - Updated -

Issue

  • Sending an HTTP request with a header size greater than 60 KiB to a VirtualService inside the Service Mesh results in the following error:

    *   Trying 10.0.0.10:80...
    * Connected to test.simple.ocp.example.com (10.0.0.10) port 80 (#0)
    > GET /env HTTP/1.1
    > Host: test.simple.ocp.example.com
    > User-Agent: curl/7.69.1
    > Accept: */*
    > test: 123456.....
    ...
    ...
    > 
    * Mark bundle as not supporting multiuse
    < HTTP/1.1 431 Request Header Fields Too Large
    < content-length: 31
    < content-type: text/plain
    < connection: close
    < 
    * Closing connection #0 to host test.simple.ocp.example.com left intact
    
  • Is there any parameter in OpenShift Service Mesh that can limit the size of the requests sent via the headers?

  • Is there any parameter in OpenShift Service Mesh to increase the maximum HTTP Request Headers size for incoming connections?

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.8
    • 4.9
    • 4.10
  • Red Hat OpenShift Service Mesh (OSSM)
    • 2.0
    • 2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content