Hardening & Encryption at Rest
Microbase applies defense-in-depth security controls out of the box:
- AES-256-GCM Secrets at Rest (
ENCRYPTION_KEY): All database-stored secrets (SMTP password, S3 secret key, Redis URL, OAuth client secrets, Webhook tokens/secrets) are encrypted withenc:v1:...before writing to PostgreSQL. - Admin UI Cookie + CSRF Guard: Superuser sessions use
HttpOnly; SameSite=Strictcookies (mb_admin_token) instead oflocalStorage, paired withX-Requested-With: MicrobaseCSRF verification on state-changing requests. - Anti-IP-Spoofing: Uses
echo.ExtractIPDirect()by default;X-Forwarded-Foris only trusted when the immediate peer matches your configured Trusted Proxy CIDRs. - SSRF Protection: Outgoing Webhook and Cron HTTP calls resolve DNS and block loopback, RFC1918 private networks, link-local (
169.254.169.254), and IPv6 ULA targets by default. - Automated Vulnerability Scanning: CI runs
govulncheckandnpm audit --audit-level=highon every push and weekly schedule.