Skip to content

Commit 1e053ed

Browse files
committed
refactor(deps): drop direct pkcs8 dep, use rsa re-exports
The rsa = "0.9" crate is pinned to pkcs8 0.10 internally. Carrying our own direct pkcs8 dep means renovate keeps trying to bump it to 0.11, but the new traits are incompatible with RsaPrivateKey / RsaPublicKey until rsa itself moves to pkcs8 0.11. Sourcing the traits from rsa::pkcs8 removes the foot-gun -- version drift can only happen when we bump rsa.
1 parent 8e9a4e2 commit 1e053ed

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ rustls-pemfile = "2.2.0"
1414
tokio-rustls = "0.26.4"
1515
tokio-postgres = "0.7.15"
1616
deadpool = "0.12.3"
17-
rsa = "0.9.9"
17+
rsa = { version = "0.9.9", features = ["pem"] }
1818
rand = "0.10.0"
1919
rand_core = "0.6"
20-
pkcs8 = { version = "0.10.2", features = ["pem"] }
2120
tokio = { version = "1.49.0", features = ["rt", "time", "sync", "macros"] }
2221
arc-swap = "1.7.1"
2322
thiserror = "2.0.17"

src/cert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::error::Error;
44
use crate::instance::InstanceConnectionName;
55
use arc_swap::ArcSwap;
66
use chrono::{DateTime, Utc};
7-
use pkcs8::{EncodePrivateKey, EncodePublicKey, LineEnding};
7+
use rsa::pkcs8::{EncodePrivateKey, EncodePublicKey, LineEnding};
88
use rsa::{RsaPrivateKey, RsaPublicKey};
99
use rustls::pki_types::{CertificateDer, PrivateKeyDer};
1010
use std::net::IpAddr;

0 commit comments

Comments
 (0)