Security
How Foresera protects your data and the infrastructure behind our platform.
1. Infrastructure
Foresera uses a split architecture: a static frontend served via Vercel's global CDN, and a dedicated API server hosted on Google Cloud Compute Engine.
- Frontend hosting — The Foresera web application is deployed on Vercel's edge network with automatic HTTPS, DDoS mitigation, and global CDN caching.
- API hosting — Our backend API runs on a dedicated Google Cloud Compute Engine instance in the
us-central1region, managed with PM2 for process supervision and automatic restarts. - Encryption in transit — All communication between your browser and our servers uses HTTPS with TLS. API requests, form submissions, and file uploads are encrypted in transit. We enforce HSTS headers with a one-year max-age policy.
- Security headers — Our API enforces a strict Content Security Policy (CSP), X-Content-Type-Options, X-Frame-Options, and Strict-Transport-Security headers via Helmet.js.
2. Authentication & Access Control
We use industry-standard authentication and enforce role-based access throughout the platform.
- Authentication provider — User authentication is managed by Clerk, our authentication provider. We do not store passwords. Session verification and multi-factor authentication (MFA) for application accounts are handled by Clerk. Our policy requires MFA for Foresera application accounts. Infrastructure administration uses separate Google Cloud, host, and deployment access paths; a Clerk application session does not authenticate those administrative systems.
- Role-based access — Users are assigned roles (Admin, Editor, Viewer) within their organization. API endpoints enforce role-based access checks before returning data or performing actions.
- Rate limiting — Configured API routes use request limits, with stricter limits on authentication endpoints to reduce abuse. The health endpoint is excepted for monitoring; rate limiting is not a guarantee that every abusive request is prevented.
- Webhook verification — Incoming webhooks from Stripe, Resend, and our document-processing engine are verified using HMAC signatures or provider-specific signature verification before processing.
3. Data Handling
We minimize the data we collect and limit how it flows through our systems.
- Document transfers — The direct-to-storage upload path uses time-limited signed URLs. Our application services may retrieve document content for authorized delivery, correction, and report-export workflows; this is distinct from the initial upload.
- Server-side secrets — Production API secrets are stored in Google Secret Manager with restricted access and loaded into the server environment at startup. Required configuration is checked at startup. Secret credentials are kept server-side rather than included in frontend code.
- Input validation — The API uses Zod schemas for defined inputs and parameterized database queries through Prisma. These controls reduce input-handling risks; they are not a guarantee that every route has been independently assessed or that injection is impossible.
- Activity logging — User actions (uploads, downloads, settings changes, team management) are recorded in an audit log with timestamps and user attribution.
4. Document Security
Document compliance is our core service. We take extra precautions with uploaded files.
- File type validation — Only PDF files are accepted for compliance processing. File type validation occurs before signed upload URLs are issued.
- Upload safeguards — The public upload form applies a 20 MB per-file limit, and direct-to-storage uploads use time-limited signed URLs. File-type and size checks are input safeguards; they should not be treated as malware scanning.
- Signed URL expiration — Upload URLs are cryptographically signed and expire after a short time window. Expired URLs cannot be reused.
- Document processing — Analysis and remediation run in Foresera's own document-processing engine on Google Cloud Run. The engine uses shared cloud resources; it is not a separate environment dedicated to each customer or document. Further workload isolation is included in our security improvement plan.
5. Your Data Rights
We support your right to access, export, and delete your personal data.
- Data export — Account-data exports are provided as downloadable JSON files. Document download or return is a separate workflow; an account-data export should not be treated as a complete archive of all document files. Contact us for help with your request.
- Account and document deletion — Account-data deletion and stored-document removal are separate processes. Account deletion removes the applicable account data and anonymizes user identifiers in retained activity logs. Document removal is handled through an administrative process under the applicable agreement. Contact us to request removal; account deletion alone is not confirmation that every stored document or retained record is erased. This description does not limit applicable legal or contractual rights.
- Data collection — Our Privacy Policy describes the contact, account, document, usage, and device information collected for service delivery, security, analytics, and advertising-related activities. We do not sell personal data. Provider disclosures and available choices are described in that policy.
6. Incident Response
We maintain processes for identifying, responding to, and recovering from security incidents.
- Monitoring — We monitor our infrastructure for unusual activity, error rates, and service degradation using application-level health checks and process monitoring.
- Response process — In the event of a confirmed security incident, we will promptly investigate the scope and impact, take steps to contain and remediate the issue, and notify affected users as required by applicable law.
- Responsible disclosure — If you discover a security vulnerability in our platform, please report it to security@foresera.com. We ask that you give us reasonable time to investigate and address the issue before any public disclosure.
7. Ongoing Commitment
Security is an ongoing effort. We continuously improve our practices as our platform evolves.
- Dependency management — We monitor software dependencies through vulnerability alerts and track remediation in our security improvement plan. An alert or proposed update is not itself confirmation that a deployed vulnerability has been fixed.
- CORS policy — Browser-origin permissions are configured for Foresera domains and authorized previews. CORS is a browser control, not a substitute for authentication or a restriction on every non-browser API request.
- Continuous improvement — We regularly review and update our security practices, infrastructure configurations, and access policies in response to new threats and industry best practices.
Questions about our security practices? Contact us at security@foresera.com.