Replace unmaintained rustls-pemfile with rustls-pki-types PemObject #280
All Vouch review confidence checks passed
Residual risk 0.38 = Change Risk (0.65) × (1 − Review Confidence (0.42)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.65 · 167 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.307
Sensitive Paths
sensitive_paths
0.065
Real PR Conversation Timeline
1 comments
"Review active on #280"
general
weight: 0.35
kpcyrd
Summary
Resolves RUSTSEC-2025-0134 by migrating from the unmaintained
rustls-pemfilecrate to thePemObjecttrait inrustls-pki-types(available since v1.9.0).As noted in the advisory,
rustls-pemfileis a thin wrapper around the same PEM parsing code now included directly inrustls-pki-types. The project already depends onrustls-pki-types v1.14.0transitively throughtokio-rustls, so this change removes a dependency rather than adding one.Changes
Cargo.toml: Removerustls-pemfilefrom[dependencies]andtls-rustfeature listsrc/client/conn.rs: Replace threerustls_pemfilecall sites withPemObjecttrait methods:-
rustls_pemfile::certs()→CertificateDer::pem_file_iter()-
rustls_pemfile::private_key()→PrivateKeyDer::from_pem_slice()- Remove unused
FileandBufReaderimports from thetls-rustcfg blockCloses #277
Test plan
cargo check— default features (tls-native)cargo check --no-default-features --features tls-rust,...— tls-rust pathcargo clippy --all-targets --all-features— no new warningscargo test— 67 tests + 8 doc-tests passcargo test --no-default-features— 45 tests + 7 doc-tests passgit diff --check— no whitespace issues