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-agent"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
[[bin]]
name = "tessera-agent"
@@ -23,6 +24,5 @@ base64 = "0.22"
tempfile.workspace = true
sha2.workspace = true
hex.workspace = true
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"] }
rustls-native-certs = "0.8"

View File

@@ -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)]

View File

@@ -3,6 +3,7 @@ name = "tessera-cli"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
[[bin]]
name = "tessera"

View File

@@ -3,6 +3,7 @@ name = "tessera-core"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
[dependencies]
anyhow.workspace = true

View File

@@ -3,6 +3,7 @@ name = "tessera-demo"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
[dependencies]
tessera-core = { path = "../tessera-core" }

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

View File

@@ -3,6 +3,7 @@ name = "tessera-providers"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
[dependencies]
tessera-core = { path = "../tessera-core" }

View File

@@ -3,6 +3,7 @@ name = "tessera-store"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
[dependencies]
tessera-core = { path = "../tessera-core" }