docs: add architecture documentation and slides

This commit is contained in:
2026-07-14 11:04:49 +03:30
parent e99060de41
commit c54f6edc1e
23 changed files with 765 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# ADR 002: Store OTP State In Redis
## Status
Accepted.
## Context
OTP state is temporary, security-sensitive, and must expire automatically.
## Decision
Store only HMAC hashes of OTP codes in Redis, with TTLs, attempt counters, and request rate limits.
## Consequences
OTP verification is fast and self-expiring. Plaintext OTPs are not persisted. The local debug provider writes a separate development-only key for demos.