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:
@@ -6,14 +6,12 @@ use axum::Router;
|
||||
use hyper::body::Incoming;
|
||||
use hyper_util::rt::TokioIo;
|
||||
use hyper_util::service::TowerToHyperService;
|
||||
use rustls::pki_types::{CertificateDer, PrivateKeyDer};
|
||||
use rustls::pki_types::{pem::PemObject, CertificateDer, PrivateKeyDer};
|
||||
use rustls::server::WebPkiClientVerifier;
|
||||
use rustls::RootCertStore;
|
||||
use rustls::ServerConfig;
|
||||
use std::convert::Infallible;
|
||||
use std::fs::File;
|
||||
use std::future::Future;
|
||||
use std::io::BufReader;
|
||||
use std::net::SocketAddr;
|
||||
use std::path::Path;
|
||||
use std::pin::Pin;
|
||||
@@ -120,17 +118,14 @@ impl Service<Request<Incoming>> for HyperApp {
|
||||
}
|
||||
|
||||
pub fn load_certs(path: &Path) -> Result<Vec<CertificateDer<'static>>> {
|
||||
let mut reader = BufReader::new(File::open(path).with_context(|| format!("open {}", path.display()))?);
|
||||
rustls_pemfile::certs(&mut reader)
|
||||
CertificateDer::pem_file_iter(path)
|
||||
.with_context(|| format!("open {}", path.display()))?
|
||||
.collect::<Result<Vec<_>, _>>()
|
||||
.context("parse certificate")
|
||||
}
|
||||
|
||||
pub fn load_key(path: &Path) -> Result<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("certificate file has no private key")
|
||||
PrivateKeyDer::from_pem_file(path).context("parse private key (none found in file?)")
|
||||
}
|
||||
|
||||
pub fn load_ca(path: &Path) -> Result<RootCertStore> {
|
||||
|
||||
Reference in New Issue
Block a user