-
-
Notifications
You must be signed in to change notification settings - Fork 334
Closed as not planned
Description
Since sensitive data can be stored in headers (i.e. credentials in an Authorization
header), it would be nice for the value to be "zero-ed out" when they are dropped so as to not leave their data in memory. This is difficult as HeaderValue
stores its contents in Bytes
, but I think it would be possible to add a try_as_mut(&mut self) -> Option<&mut [u8]>
method to Bytes
to accomplish this.
I am fully willing to implement this myself, and have already started work towards that in tokio-rs/bytes#643, but I thought it good to make sure this goal is something you'd be interested in before continuing.
Metadata
Metadata
Assignees
Labels
No labels