Skip to content

tls-util: zeroize sensitive data in consumers, not just Pkcs12Archive#36133

Open
def- wants to merge 1 commit intoMaterializeInc:mainfrom
def-:pr-zeroize
Open

tls-util: zeroize sensitive data in consumers, not just Pkcs12Archive#36133
def- wants to merge 1 commit intoMaterializeInc:mainfrom
def-:pr-zeroize

Conversation

@def-
Copy link
Copy Markdown
Contributor

@def- def- commented Apr 17, 2026

The std::mem::take pattern moved der/pass out of Pkcs12Archive into types that didn't zeroize on drop, so the archive's Drop only zeroed empty fields. Fix by adding Pkcs12Archive::into_parts() to cleanly consume the archive, and implementing Zeroize + Drop on ccsr::Identity so the actual sensitive data is zeroized when dropped.

Follow-up to 16c15ae

The std::mem::take pattern moved der/pass out of Pkcs12Archive into
types that didn't zeroize on drop, so the archive's Drop only zeroed
empty fields. Fix by adding Pkcs12Archive::into_parts() to cleanly
consume the archive, and implementing Zeroize + Drop on ccsr::Identity
so the actual sensitive data is zeroized when dropped.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@def- def- requested a review from jasonhernandez April 17, 2026 05:45
@def- def- requested review from a team as code owners April 17, 2026 05:45
@def- def- requested a review from ohbadiah April 17, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant