feat(identity): add server sessions and audited mail recovery

This commit is contained in:
TakuyaYagam1 committed 2026-10-07 11:03:46 +03:00
1 parent 20c03288d6
commit 4ee53d9a74
58 files changed
+5359 -567

No files matched your search

+12 -3
View File
@@ -71,7 +71,8 @@ PASSWORD_HASH_CONCURRENCY=1
APP_SUBNET=172.29.79.0/24
APP_FRONTEND_IP=172.29.79.10
# Registration and email confirmation. IDENTITY_KEY_SECRET is required. It
# keys idempotency records and rate-limit counters across restarts and instances.
# keys idempotency records, rate-limit counters, and session CSRF tokens across
# restarts and instances.
# Use at least 32 bytes. There is no usable example value: leave it empty here
# and generate one for every deployment (Compose refuses an empty value):
# openssl rand -base64 48
@@ -83,9 +84,17 @@ VERIFICATION_MAIL_MIN_INTERVAL=1m
VERIFICATION_MAIL_DAILY_LIMIT=5
# Confirmation attempts are limited to 5 per token per hour by the service.
# This token limit is fixed; it has no environment setting.
# IDENTITY_CLIENT_HOURLY_LIMIT applies to registration, resends, and
# confirmations per resolved client address per hour, when available.
# IDENTITY_CLIENT_HOURLY_LIMIT applies to registration, confirmation, resends,
# and login per resolved client address per hour, when available.
IDENTITY_CLIENT_HOURLY_LIMIT=30
# Login attempts are limited by the resolved client address and normalized
# email address. The email limit applies whether or not the account exists.
IDENTITY_LOGIN_EMAIL_HOURLY_LIMIT=10
# Sessions expire after this much inactivity or at the absolute lifetime,
# whichever comes first. Idle must not exceed absolute; idle is capped at 30d
# and absolute at 365d.
IDENTITY_SESSION_IDLE_TIMEOUT=24h
IDENTITY_SESSION_ABSOLUTE_LIFETIME=168h
# Reverse proxies the backend trusts to report the client address in
# X-Forwarded-For. Leave it unset: the default is the frontend container's