Security & Data Protection
Security Highlights
- Strict TLS encryption in transit, Content-Security-Policy (CSP) headers, and isolated zero-trust database tunnels.
- Row-level userId ownership checks enforced across every service-layer database read and write.
- Personal API tokens are hashed before storage — raw secrets are never persisted in our database.
- Private Cloudflare R2 media storage gated behind authenticated Worker proxy routes.
1. Transport & Browser Security
All traffic across www.potaoo.com and webapp.potaoo.com is served exclusively over HTTPS (TLS 1.3) behind Cloudflare’s global edge.
Application responses enforce strict security headers including Content-Security-Policy (no unsafe-eval in production), X-Frame-Options, X-Content-Type-Options: nosniff, and Referrer-Policy.
2. Authentication & Hashed API Tokens
Interactive sessions are managed via Better Auth with origin verification, HttpOnly session cookies, and cryptographically salted password hashing.
External automation tokens created for iOS Shortcuts (/api/capture) are shown once at creation and stored strictly as irreversible cryptographic hashes in the api_tokens table; tokens can be revoked individually at any moment.
3. Tenant Isolation & Private Media Storage
Every business table in Potaoo’s PostgreSQL schema carries an explicit userId column alongside database CHECK constraints. All service-layer reads and mutations verify user ownership before returning or modifying records.
Uploaded task images and files are stored in a private Cloudflare R2 bucket with zero public bucket URLs — every file read passes through an authenticated, sandboxed Worker route.
4. Database Network Isolation & Backups
Our PostgreSQL cluster is never exposed to the public internet; Workers connect exclusively via Cloudflare Hyperdrive over an authenticated Cloudflare Tunnel & Access service token.
Automated database migrations run inside verified CI pipelines with reconciliation checks, paired with scheduled encrypted database backups for disaster recovery.
5. Responsible Vulnerability Disclosure
If you discover a potential security issue in Potaoo, please report it privately to support@potaoo.com with reproduction details. We investigate all security reports promptly and appreciate responsible researchers.