Skip to content

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

Merged
def- merged 1 commit intoMaterializeInc:mainfrom
def-:pr-zeroize
Apr 21, 2026
Merged

tls-util: zeroize sensitive data in consumers, not just Pkcs12Archive#36133
def- merged 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
@def- def- merged commit 4d1c464 into MaterializeInc:main Apr 21, 2026
121 checks passed
@def- def- deleted the pr-zeroize branch April 21, 2026 02:27
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.

2 participants