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:
2026-11-14 12:58:46 +07:00
parent c74694cf1f
commit f6a41ee702
15 changed files with 208 additions and 135 deletions

View File

@@ -3,6 +3,7 @@ name = "tessera-hub"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
[[bin]]
name = "tessera-hub"
@@ -38,8 +39,7 @@ tempfile.workspace = true
indexmap = "=2.2.6"
hyper = { version = "=1.12.0", features = ["server", "http1"] }
hyper-util = { version = "=0.1.21", features = ["tokio"] }
rustls = { version = "=0.23.23", default-features = false, features = ["ring", "std"] }
rustls-pemfile = "=2.2.0"
rustls = { version = "=0.23.46", default-features = false, features = ["ring", "std"] }
tokio-rustls = "=0.26.2"
tower = { workspace = true }

View File

@@ -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> {