Open
Description
There is an attribute of HeaderValue
that marks it as "sensitive". This currently has 2 effects:
- In HTTP2, the HPACK never-indexed-literals flag is set. This keeps the value from being stored in the dynamic HPACK table.
- Alters the
Debug
output to simply write the word"Sensitive"
instead of the actual bytes, which can help with accidental storage of secrets or PII.
Should these potentially sensitive headers set this flag when encoding to a HeaderValue
?
Authorization
Cookie
Set-Cookie
- Others?