echo/Cargo.toml
Jean f2fd80694d
All checks were successful
CI / check (push) Successful in 3m52s
Redeem website login keycards over SASL
A member already authenticated on tchatou.fr connects with a single-use kc_…
keycard instead of their password (the m_apiauth module that used to validate it
was retired in the Anope->echo cutover, so these logins had started failing as
"wrong password"). The SASL PLAIN handler now recognises a kc_-prefixed
credential and emits NetAction::DeferKeycard; the link layer redeems it off the
engine lock — a localhost round-trip to Django's login-token endpoint via
keycard::redeem — and completes the login exactly like a password auth. Config:
[keycard] url + api_key; absent, kc_ credentials are simply not honoured.
2026-07-16 22:27:59 +00:00

74 lines
2.3 KiB
TOML

[workspace]
# api is the SDK every module links against; the loadable modules — the service
# pseudo-clients and the ircd protocol link — live under modules/.
members = [
"api",
"modules/protocol/inspircd",
"modules/chanserv",
"modules/nickserv",
"modules/example",
"modules/botserv",
"modules/memoserv",
"modules/statserv",
"modules/hostserv",
"modules/operserv",
"modules/diceserv",
"modules/infoserv",
"modules/reportserv",
"modules/groupserv",
"modules/chanfix",
"modules/helpserv",
"modules/debugserv",
]
[package]
name = "echo"
version = "0.0.1"
edition = "2021"
description = "Echo the modern IRC Services"
license = "AGPL-3.0-or-later"
[dependencies]
echo-api = { path = "api" }
echo-inspircd = { path = "modules/protocol/inspircd" }
echo-chanserv = { path = "modules/chanserv" }
echo-nickserv = { path = "modules/nickserv" }
echo-example = { path = "modules/example" }
echo-botserv = { path = "modules/botserv" }
echo-memoserv = { path = "modules/memoserv" }
echo-statserv = { path = "modules/statserv" }
echo-hostserv = { path = "modules/hostserv" }
echo-operserv = { path = "modules/operserv" }
echo-diceserv = { path = "modules/diceserv" }
echo-infoserv = { path = "modules/infoserv" }
echo-reportserv = { path = "modules/reportserv" }
echo-groupserv = { path = "modules/groupserv" }
echo-chanfix = { path = "modules/chanfix" }
echo-helpserv = { path = "modules/helpserv" }
echo-debugserv = { path = "modules/debugserv" }
tokio = { version = "1", features = ["net", "io-util", "rt-multi-thread", "macros", "time", "sync", "process", "signal"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"
rand_core = { version = "0.6", features = ["getrandom"] }
base64 = "0.22"
sha2 = "0.10"
hmac = "0.12"
pbkdf2 = { version = "0.12", default-features = false, features = ["hmac"] }
subtle = "2"
regex = "1"
anyhow = "1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tokio-rustls = "0.26.4"
rustls-pemfile = "2.2.0"
tonic = { version = "0.12", features = ["tls"] }
axum = "0.7"
axum-server = { version = "0.7", features = ["tls-rustls"] }
prost = "0.13"
tokio-stream = "0.1"
ureq = { version = "2", default-features = false }
[build-dependencies]
tonic-build = "0.12"
protoc-bin-vendored = "3"