Using One Structured Fields Parser Across HTTP Trust Boundaries
HTTP fields are often parsed separately by proxies, gateways, and origins, and disagreements over whitespace, duplicates, or types can cause a system to enforce one meaning while acting on another. RFC 9651 defines typed Structured Field Values with a precise shared parsing and serialization model. This matters most for signed requests, where a verifier must rebuild the same component values as the signer, otherwise a valid signature may cover a different policy. The article recommends validating fields against their declared types, setting explicit rules for duplicate keys, enforcing length and depth limits, and using the library's canonical serializer rather than raw header concatenation. It also advises clear ownership of fields across proxy chains and tests that send identical bytes through each hop, with version-controlled parser rules treated as security-sensitive code.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in