Skip to content

Should "sensitive" header types set HeaderValue::is_sensitive? #9

Open
@seanmonstar

Description

@seanmonstar

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    rfcRequest for comments. More discussion would help move this along.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions