Security at MolForge
This page documents the security controls in place on molforge.ai. We've written it so customers, security researchers, and prospective enterprise buyers can audit our posture without having to ask. Each control below is described as it is configured today. Last updated 2026-11-25.
Authentication & authorization
- live User auth via Firebase Auth (email + password, Google sign-in).
- live API access via short-lived Firebase JWT or rotated
mf_*API keys (HMAC'd in Firestore, never compared in plain text). - live Every billable operation runs through a credit-charge with idempotency keys (
X-Idempotency-Key) so a double-submit can never double-charge. - live Admin endpoints gated by
require_admindependency that validates Firebase JWT against a server-side allow-list. Probed: every admin path returns401/403unauthenticated. - in progress SSO / SAML for Team and Enterprise plans (planned).
Encryption
- live TLS 1.2+ for all customer traffic. HSTS with
max-age=63072000; includeSubDomains; preload. - live Encryption at rest: Google-managed AES-256 across AlloyDB, Firestore, GCS, Secret Manager.
- planned Customer-managed encryption keys (CMEK) on AlloyDB.
Secrets management
- live All production secrets (Stripe keys, AlloyDB password, HMAC peppers, third-party API keys) live in Google Secret Manager — never in environment variables, source code, or CI artifacts.
- live Per-secret IAM bindings restrict access to the specific service account that needs each value. The API's runtime service account reads only the secrets it requires.
- in progress Automated rotation cadence (90-day for DB password, 180-day for webhook secrets).
Data privacy
- live Default-deny Firestore Rules: client SDKs cannot write to credit balances, subscriptions, or transaction logs. All billing mutations happen server-side via Firebase Admin SDK.
- live Marketplace IP fingerprints are HMAC-SHA256 with a server-side pepper — raw IPs are never stored.
- live GDPR Art. 15 export: a signed-in user downloads the records stored under their account as one JSON file (
GET /api/v1/me/export/download). The file lists what it holds and what is kept elsewhere. - in progress GDPR Art. 17 erasure: the request is recorded (
DELETE /api/v1/me) and carried out by hand. To be sure it is handled, write to privacy@molforge.ai. - in progress EU data-localization option for European customers (multi-region AlloyDB).
- in progress Standard Contractual Clauses + Data Processing Agreement template for Pro / Team / Enterprise customers.
Infrastructure & isolation
- live Single Cloud Run service (
molforge-api) hosts the API, behind Google's edge with built-in DDoS protection. - live AlloyDB is on a private VPC; only the API service's VPC connector can reach it.
- live Cost ceiling:
--max-instances=10hard cap to prevent runaway autoscaling on a traffic spike or runaway loop. - in progress Cloud Armor WAF with OWASP managed rule set in front of the API.
Software supply chain
- live CI/CD via GitHub Actions + Workload Identity Federation. No long-lived service-account JSON keys distributed.
- live Every push runs
ruff,bandit,pip-audit,pytest, and Trivy image scan. Trivy gates on HIGH/CRITICAL severity. - live SBOM (CycloneDX) generated for every Docker image, retained 90 days as a CI artifact.
- in progress SLSA Level 1 build provenance attestations + cosign image signing.
Audit logging & monitoring
- live Cloud Audit Logs export to BigQuery (admin actions, IAM changes, secret access).
- live Per-credit-charge audit row written to Firestore
credits/{uid}/transactions/{txId}— append-only via security rules. - live Structured JSON request logs with request-ID tracing for the entire request lifecycle.
- in progress Active alerts on sensitive Cloud Audit Log events (IAM policy changes, service-account key creation, unexpected secret access).
Reliability & backups
- live AlloyDB point-in-time recovery (3-day window) plus weekly automated backups (2 retained).
- live Atlas + ingest jobs are checkpoint-resumable so a container restart never loses more than a few thousand rows of work.
- in progress Documented RTO/RPO per data class + quarterly restore drill on a sandbox project.
- planned Multi-region failover for European customers.
Vulnerability disclosure
We follow RFC 9116:
a security.txt at /.well-known/security.txt
lists current contacts, scope, and timelines.
In-scope: *.molforge.ai + the molforge GCP project (Cloud Run / AlloyDB / Firestore / GCS).
Out-of-scope: third-party processors (Stripe, Firebase Auth, Vertex AI) — please report directly to those vendors.
We acknowledge every report within 72 hours, classify within 7 days, and coordinate disclosure after a fix ships (default 90-day deadline). We don't currently offer monetary bounties but we credit researchers on this page, with their consent, and provide written acknowledgment for CV / portfolio use.
Security: security@molforge.ai
Privacy: privacy@molforge.ai
For urgent incidents (active exploitation), put
[URGENT] in the subject.
What we don't do
- We don't sell user data. We share it only with the processors listed in the Privacy Policy.
- We don't store passwords. Firebase Auth handles credential storage with industry-standard hashing.
- We don't store payment cards. Stripe Checkout collects card details directly; we never see them.
- We don't currently process Protected Health Information (PHI) under HIPAA or US health-care frameworks. If you need that, contact us — the work is feasible but on a deliberate roadmap, not unlocked by default.
Compliance roadmap
We're not yet SOC 2 Type II certified. We have not set a date for an audit. The security.txt + this page are the pre-audit transparency layer.
- Phase 1, hardening — least-privilege service accounts, WAF, branch protection, CI gates blocking. In progress.
- Phase 2, customer-visible compliance — GDPR data export/erasure, DPA template, SLO doc + status page, public security page. Partly shipped.
- Phase 3, planned — CMEK, SLSA + cosign, audit-log alerts wired, first quarterly tabletop, DR runbook + restore drill.
- Then: first external pen test + SOC 2 Type II pre-audit (Vanta or Drata).