Sessions and users (M2) - users and sessions tables in SQLite; only a digest of the session ID is stored - idle 30 min / absolute 8 h deadlines, UPDATE-only touch, per-user revoke by generation - emergency operator is a users row (issuer local:emergency); its sessions are bound to the operator hash fingerprint, so unsetting or rotating it ends them - CSRF derived from the session ID; GET /api/v1/me OIDC login (M3) - openidconnect 4.1: authorization code + PKCE S256, static redirect URI, no redirects - one-time login transactions bound to the browser by a Lax correlation cookie - identity is (issuer, subject); admin only from configured subjects/groups; a signed-in user without a grant gets 403 on management APIs - OIDC sessions are bound to the OIDC configuration fingerprint - SSO button, no-access page and fixed error codes in the web UI - tests against a mock IdP with signed and malformed tokens; rehearsed against Keycloak 26.1 in a real browser - rsa 0.9 advisory (RUSTSEC-2023-0071) excepted with a written reason: runtime code only verifies signatures with public keys Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
53 lines
1.4 KiB
TOML
53 lines
1.4 KiB
TOML
[package]
|
|
name = "tessera-hub"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
|
|
[[bin]]
|
|
name = "tessera-hub"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
tessera-core = { path = "../tessera-core" }
|
|
tessera-store = { path = "../tessera-store" }
|
|
tessera-providers = { path = "../tessera-providers" }
|
|
tessera-demo = { path = "../tessera-demo" }
|
|
anyhow.workspace = true
|
|
argon2.workspace = true
|
|
axum.workspace = true
|
|
chrono.workspace = true
|
|
chrono-tz = "0.10"
|
|
cron.workspace = true
|
|
include_dir = "0.7"
|
|
rand.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
rusqlite.workspace = true
|
|
tokio.workspace = true
|
|
tokio-util = { version = "0.7", features = ["io"] }
|
|
tower-http.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
utoipa.workspace = true
|
|
uuid.workspace = true
|
|
hex.workspace = true
|
|
sha2.workspace = true
|
|
base64 = "0.22"
|
|
openidconnect = { version = "=4.1.0", default-features = false, features = ["reqwest", "rustls-tls"] }
|
|
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.46", default-features = false, features = ["ring", "std"] }
|
|
tokio-rustls = "=0.26.2"
|
|
tower = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
rcgen = "=0.13.2"
|
|
wiremock = "=0.6.5"
|
|
rsa = { version = "=0.9.10", features = ["sha2"] }
|
|
hmac.workspace = true
|
|
tokio.workspace = true
|