Credentials - pairing codes and Outpost upload tokens are stored only as SHA-256 digests; the token is minted at claim (256-bit OsRng) and returned once - the old clear-text wormhole_tokens table is migrated in place and dropped with secure_delete; active tokens keep working with a fresh lifetime - admin rotate (with grace window) and revoke endpoints, audited; a revoked Outpost is refused on its next request - optional end date for the shared admin token (TESSERA_ADMIN_TOKEN_EXPIRES) Limits - governor per-source limits for emergency login, pairing claim and SSO start/callback; X-Forwarded-For only from TESSERA_TRUSTED_PROXIES; IPv6 by /64 - at most two concurrent Argon2 verifications, refused immediately when busy - denials audited at most once a minute per source - the mTLS listener now supplies the peer address to handlers Existing hubs: rotate every Outpost token after upgrading; old database copies still contain the clear-text tokens. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
54 lines
1.5 KiB
TOML
54 lines
1.5 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"
|
|
governor = { version = "=0.10.4", default-features = false, features = ["std"] }
|
|
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
|