Security & Data Governance

Enterprise trust built on
provable engineering.

We don't rely on marketing slogans or unverified badges. StarX-Flow protects your merchant data and client conversations through database-level isolation, cryptographic webhook verification, and immutable audit trails.

Key Takeaway: The StarX-Flow Security Architecture

StarX-Flow secures appointment-driven businesses through six architectural pillars: (1) PostgreSQL Row Level Security (RLS) enforcing strict tenant isolation at the database engine level; (2) HMAC-SHA256 cryptographic signature validation on all Meta WhatsApp and Instagram webhooks; (3) PostgreSQL exclusion constraints (btree_gist) preventing overlapping appointment ranges; (4) Engine-level immutable audit logging prohibiting log updates or deletions; (5) TLS 1.3 transport encryption and AES-256 storage encryption; and (6) Programmatic GDPR Article 17 and 20 endpoints for customer data export and right-to-erasure compliance.

Database Engine Bound

PostgreSQL Row Level Security (RLS)

Every database query executed by staff or AI agents is bounded by PostgreSQL Row Level Security policies. Tenants cannot view or access data belonging to any other business.

  • Enforced at the PostgreSQL engine level, not in application middleware
  • Role-Based Access Control (RBAC) separating owners, admins, and members
  • All conversations, appointments, and leads carry organization isolation keys
HMAC-SHA256 Signed

Cryptographic Webhook Verification

Every incoming message payload from WhatsApp and Instagram is validated using Meta's HMAC-SHA256 signature header (x-hub-signature-256) before entering processing pipelines.

  • Rejects forged, tampered, or spoofed HTTP requests with HTTP 403 Forbidden
  • Sliding-window idempotency cache (15-min TTL) eliminates duplicate event replays
  • Cryptographic verification powered by native Web Crypto API
Double-Booking Prevention

Database Exclusion Concurrency Locks

To mathematically prevent scheduling conflicts, appointments are constrained by PostgreSQL btree_gist exclusion constraints over timestamp ranges, locking slots at the database layer.

  • Rejects concurrent double-bookings before calendar writes occur
  • Bi-directional synchronization with Google Calendar and Microsoft Outlook
  • Atomic transaction commits guarantee calendar and database consistency
Tamper-Proof Audit Trail

Engine-Level Immutable Audit Logs

Every administrative action and AI agent execution is recorded in an append-only audit trail protected by database triggers that prohibit UPDATE and DELETE operations.

  • PostgreSQL trigger tr_prevent_audit_log_mutation() blocks log tampering
  • Captures actor type (user, ai_agent, system, api_key), timestamp, and payload
  • Provides permanent compliance tracking for regulatory review
TLS 1.3 & AES-256

Encryption In Transit & At Rest

All network traffic is encrypted using TLS 1.3 with HTTP Strict Transport Security (HSTS) enforced. Persistent data is stored in managed Supabase PostgreSQL with disk-level AES-256 encryption.

  • HSTS max-age=31536000 with includeSubDomains enforced on edge routing
  • Automated SSL/TLS certificate rotation and strict HTTPS redirection
  • Database backups and transaction logs encrypted at rest
Articles 17 & 20 Compliant

Automated GDPR Rights & Erasure

Merchants can fulfill consumer data protection requests automatically using verified programmatic endpoints for full JSON data export and permanent cascade deletion.

  • Structured data export endpoint (/api/gdpr/export) for data portability
  • Permanent cascade deletion endpoint (/api/gdpr/delete) for right-to-erasure
  • Zero data retention beyond active subscription lifecycle

Infrastructure & Sub-Processor Transparency

We exclusively deploy on enterprise cloud infrastructure maintaining accredited security certifications.

Sub-ProcessorOperational RoleAccredited Standards
Supabase, Inc.Managed PostgreSQL Database & AuthenticationSOC 2 Type II Certified
Vercel, Inc.Edge Application Hosting & Serverless ExecutionSOC 2 Type II / ISO 27001
Meta Platforms, Inc.WhatsApp Cloud API & Instagram MessagingEnterprise Privacy Shield
Google LLCGoogle Calendar API & Gemini AI InferenceSOC 2 / ISO 27001 / HIPAA
Microsoft CorporationMicrosoft Graph Calendar APISOC 2 / ISO 27001
Stripe, Inc.Payment Processing & Billing SubscriptionsPCI-DSS Level 1 Service Provider

Security Vulnerability Disclosure

We welcome responsible security research. If you believe you have discovered a potential vulnerability in StarX-Flow, please contact our security engineering team directly. We commit to acknowledging all submissions within 24 hours.

Direct Security Contact:security@starx-flow.runs-on.dev