Expand description
Synapse-compatible shared-secret registration backend.
Pairs with the HTTP handlers in tuwunel_api::client::admin that serve
/_synapse/admin/v1/register. Owns:
- resolution of the shared secret (from
registration_shared_secretor its_filecompanion), performed at each use; - a short-lived in-memory nonce store with a 60-second TTL.
The nonce store lives in RAM rather than RocksDB on purpose: each entryβs
useful lifespan is shorter than a single block-cache eviction tick, and
the working set is bounded by NONCE_CAP regardless of traffic.
ConstantsΒ§
- NONCE_
CAP π - NONCE_
LENGTH π - NONCE_
TTL π
FunctionsΒ§
- drop_
oldest π - gc_
expired π
Type AliasesΒ§
- Nonces π