mirror of
https://github.com/Such-Software/wowcheckout.git
synced 2026-10-17 05:51:45 +02:00
security: harden admin auth, reconciler locking, and connection pooling
- Use secrets.compare_digest for timing-safe admin key comparison - Strip whitespace from ADMIN_API_KEY env var - Add PostgreSQL advisory locks per-invoice in reconciler to prevent duplicate processing during deployments - Add wallet-RPC retry with backoff (3 attempts: 0.5s, 1s, 2s) - Raise MAX_SUBADDRESS_INDEX from 100 to 300 - Tune DB connection pool (pool_size=20, max_overflow=10, recycle=3600) - Add 1-hour admin session timeout - Regenerate UI lockfile
This commit is contained in:
@@ -7,7 +7,7 @@ from .security import decrypt_secret
|
||||
from .subaddress_derivation import derive_subaddress
|
||||
|
||||
|
||||
MAX_SUBADDRESS_INDEX = 100
|
||||
MAX_SUBADDRESS_INDEX = 300
|
||||
|
||||
|
||||
def create_subaddress_for_user(
|
||||
|
||||
Reference in New Issue
Block a user