Pillar 01 · Cryptography
Fernet Encryption at Rest & TLS 1.3 in Transit
- Fernet Symmetric Authenticated Encryption: All Google Gmail OAuth refresh/access tokens, Bouncie OAuth2 tokens, and connected toll-portal credentials are encrypted prior to database write via
Fernet (AES-128-CBC + HMAC-SHA256)using environment-isolated keys (ENCRYPTION_FERNET_KEY) with fail-closed startup enforcement in production. - Cloudflare Edge TLS & Zero Exposed DB Ports: All public web, API, and webhook traffic terminates over TLS 1.2+ / TLS 1.3 via outbound-only Cloudflare Tunnel with HSTS,
X-Frame-Options: DENY,X-Content-Type-Options: nosniff, and strict CSP. PostgreSQL 16 and Redis 7 bind solely to isolated internal container networks with zero public port exposure.
