chore: raise the dependency baseline for OIDC (auth M1)
Clears every RustSec vulnerability in the workspace so openidconnect can be added without inheriting known issues. - rustls 0.23.23 -> 0.23.46 (webpki 0.103.17), tokio 1.40 -> 1.54 - rusqlite 0.31 -> 0.41.1 (SQLite binding 0.39.1); Rust 1.88 -> 1.89 as 0.41 requires - drop unmaintained rustls-pemfile in favour of rustls::pki_types::pem - add deny.toml (advisories, licenses, bans, sources); mark crates publish = false - add tasks/auth-plan.md with per-milestone auth plan and M1 results Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -226,19 +226,16 @@ fn connect_tls(
|
||||
}
|
||||
|
||||
fn load_certs(path: &std::path::Path) -> Result<Vec<rustls::pki_types::CertificateDer<'static>>> {
|
||||
let mut reader =
|
||||
BufReader::new(File::open(path).with_context(|| format!("open {}", path.display()))?);
|
||||
rustls_pemfile::certs(&mut reader)
|
||||
use rustls::pki_types::{pem::PemObject, CertificateDer};
|
||||
CertificateDer::pem_file_iter(path)
|
||||
.with_context(|| format!("open {}", path.display()))?
|
||||
.collect::<Result<Vec<_>, _>>()
|
||||
.context("parse certificate")
|
||||
}
|
||||
|
||||
fn load_key(path: &std::path::Path) -> Result<rustls::pki_types::PrivateKeyDer<'static>> {
|
||||
let mut reader =
|
||||
BufReader::new(File::open(path).with_context(|| format!("open {}", path.display()))?);
|
||||
rustls_pemfile::private_key(&mut reader)
|
||||
.context("parse private key")?
|
||||
.context("no private key in client key file")
|
||||
use rustls::pki_types::{pem::PemObject, PrivateKeyDer};
|
||||
PrivateKeyDer::from_pem_file(path).context("parse private key in client key file")
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
|
||||
Reference in New Issue
Block a user