Open jrudolph opened 4 years ago
I think this is a problem that should be fixed from HPACK, it has been pointed out here: https://github.com/twitter/hpack/issues/34
For sensitive
flag, it's considered to be used to protect valuable or sensitive values such as the Cookie or Authorization headers, see https://httpwg.org/specs/rfc7541#rfc.section.7.1.3 . It's the implementations choice to set some header as sensitive by default though.
Overall, I think this issue is blocked by : https://github.com/akka/akka-http/issues/304, since seems like HPACK has officially retired.
As @surendarchandra noticed, our HPACK header tries to encode as many header values as possible into dynamic table entries. The effect can be that high entropy headers like
Date
orContent-Length
evict more useful headers from the dynamic table.The HPACK implementation from twitter that we use, allows to pass the
sensitive
flag toencodeHeader
which prevents that the values are put into the dynamic table. We should consider to encode high entropy header using thesensitive
flag for better use of the dynamic header table.